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:
62caa88
)
return {} for empty response from CouchDB view
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Oct 2011 20:15:02 +0000
(22:15 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Oct 2011 20:15:02 +0000
(22:15 +0200)
angular-server.pl
patch
|
blob
|
history
diff --git
a/angular-server.pl
b/angular-server.pl
index
1ef3778
..
d2edf1d
100755
(executable)
--- a/
angular-server.pl
+++ b/
angular-server.pl
@@
-308,6
+308,8
@@
get '/reservations/events/:view_name' => sub {
$hash->{ $row->{key} } = $row->{value};
}
+ $hash ||= {};
+
_render_jsonp( $self, $hash );
};