Skip to content

Commit dedc8a2

Browse files
1.0.3; disables header checks in node.
1 parent cd93bc9 commit dedc8a2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ module.exports = function httpQuery(db, req) {
8282
xhr.open(req.method, url, true);
8383
for (var name in headers) {
8484
if (headers.hasOwnProperty(name)) {
85+
if (xhr.setDisableHeaderCheck) {
86+
xhr.setDisableHeaderCheck(true);
87+
}
8588
xhr.setRequestHeader(name, headers[name]);
8689
}
8790
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pouchdb-req-http-query",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"main": "index.js",
55
"description": "Given a CouchDB request object, make a similar http request on a given PouchDB database.",
66
"repository": "pouchdb/pouchdb-req-http-query",

0 commit comments

Comments
 (0)