summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2017-06-02 14:07:42 +0200
committerJan Lehnardt <jan@apache.org>2017-06-02 14:07:42 +0200
commit35e9323fa4396e869131131442f137ff6c739f07 (patch)
tree873e51633039d61deace92bcd7f62c23d3b08e9a
parente5e708a018c6f44408fc055df1aacb65572b8637 (diff)
downloadcouchdb-fix/548/view-index-monitor.tar.gz
fix: add connection: close to couch.js http requests #548archive/fix/548/view-index-monitorfix/548/view-index-monitor
-rw-r--r--test/javascript/couch.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/javascript/couch.js b/test/javascript/couch.js
index c7b8d9502..b0d086f9c 100644
--- a/test/javascript/couch.js
+++ b/test/javascript/couch.js
@@ -436,6 +436,7 @@ CouchDB.request = function(method, uri, options) {
options.headers = typeof(options.headers) == 'object' ? options.headers : {};
options.headers["Content-Type"] = options.headers["Content-Type"] || options.headers["content-type"] || "application/json";
options.headers["Accept"] = options.headers["Accept"] || options.headers["accept"] || "application/json";
+ options.headers["Connection"] = options.headers["Connection"] || options.headers["connection"] || "close";
var req = CouchDB.newXhr();
uri = CouchDB.proxyUrl(uri);