You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2017/06/02 12:08:07 UTC
[couchdb] 01/01: fix: add connection: close to couch.js http
requests #548
This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch fix/548/view-index-monitor
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 35e9323fa4396e869131131442f137ff6c739f07
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Fri Jun 2 14:07:42 2017 +0200
fix: add connection: close to couch.js http requests #548
---
test/javascript/couch.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/javascript/couch.js b/test/javascript/couch.js
index c7b8d95..b0d086f 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);
--
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.