diff options
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r-- | share/www/script/couch.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js index 0a2698ab..96612faa 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -129,6 +129,10 @@ function CouchDB(name, httpHeaders) { reduceFun = reduceFun.toSource ? reduceFun.toSource() : "(" + reduceFun.toString() + ")"; body.reduce = reduceFun; } + if (options && options.options != undefined) { + body.options = options.options; + delete options.options; + } this.last_req = this.request("POST", this.uri + "_temp_view" + encodeOptions(options), { headers: {"Content-Type": "application/json"}, body: JSON.stringify(body) |