projects
/
angular-mojolicious.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1b61608
)
CouchDB chokes on fields with underscore
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 2 Oct 2011 18:07:08 +0000
(20:07 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 2 Oct 2011 18:07:08 +0000
(20:07 +0200)
angular-server.pl
patch
|
blob
|
history
diff --git
a/angular-server.pl
b/angular-server.pl
index
71e5f69
..
44be86e
100755
(executable)
--- a/
angular-server.pl
+++ b/
angular-server.pl
@@
-136,7
+136,7
@@
any [ 'post' ] => '/data/:database/:entity' => sub {
$json->{'_'.$_} = $new->{$_} foreach ( 'rev','id' );
} else {
warn "ERROR: ",dump($new);
$json->{'_'.$_} = $new->{$_} foreach ( 'rev','id' );
} else {
warn "ERROR: ",dump($new);
- $json->{
_
error} = $new;
+ $json->{error} = $new;
}
_render_jsonp( $self, $json );
}
_render_jsonp( $self, $json );