Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

couchdb won't automatically stringify JSON responses #4

Open
wants to merge 1 commit into from

1 participant

@othiym23

Probably a change in the last few releases of Couch, but in any case, had to make this change to get the scripts running properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
4 couchdb/maze/design-doc.json
@@ -8,10 +8,10 @@
"shows" : {
"cells" : "function(doc,req){
- return {body:doc.cells, headers : {'content-type':'application/json'}}
+ return {body:JSON.stringify(doc.cells), headers : {'content-type':'application/json'}}
}"
},
-
+
"validate_doc_update" : "function(newDoc, oldDoc, userCtx){
throw {forbidden : 'read-only'}
}"
View
0  couchdb/maze/maze_data.sh 100644 → 100755
File mode changed
Something went wrong with that request. Please try again.