Permalink
Browse files

Parsing is already done by couch.

  • Loading branch information...
alesch committed Feb 9, 2014
1 parent 75e7eb9 commit 408102240a42df3d5e33d257a4c403cb50f53586
Showing with 2 additions and 3 deletions.
  1. +2 −3 README.md
View
@@ -599,9 +599,8 @@ An example update handler follows:
``` js
"updates": {
"in-place" : "function(doc, req) {
- var body = JSON.parse(req.body);
- var field = body.field;
- var value = body.value;
+ var field = req.form.field;
+ var value = req.form.value;
var message = 'set '+field+' to '+value;
doc[field] = value;
return [doc, message];

0 comments on commit 4081022

Please sign in to comment.