From 5e3488065de6b76212e7bd64fca972f97959ccf8 Mon Sep 17 00:00:00 2001 From: Forrest L Norvell Date: Wed, 4 Apr 2012 00:44:48 -0700 Subject: [PATCH] CouchDB has grown more strict about reponses for shows. --- couchdb/maze/design-doc.json | 4 ++-- couchdb/maze/maze_data.sh | 0 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 couchdb/maze/maze_data.sh diff --git a/couchdb/maze/design-doc.json b/couchdb/maze/design-doc.json index 0e28d4e..7542cc1 100644 --- a/couchdb/maze/design-doc.json +++ b/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'} }" diff --git a/couchdb/maze/maze_data.sh b/couchdb/maze/maze_data.sh old mode 100644 new mode 100755