ispapi-apiconnector
Advanced tools
Comparing version 4.0.7 to 4.0.8
@@ -61,9 +61,4 @@ /* | ||
// set the expect header for performance improvement if not set | ||
if (!opts.headers) | ||
opts.headers = { | ||
Expect: '' | ||
}; | ||
else if (!opts.headers.hasOwnProperty('Expect')) | ||
opts.headers.Expect = ''; | ||
opts.headers = {}; | ||
@@ -70,0 +65,0 @@ //----- the socket parameters ---- |
{ | ||
"name": "ispapi-apiconnector", | ||
"description": "1API API Connector for node.js", | ||
"version": "4.0.7", | ||
"version": "4.0.8", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Kai Schwarz", |
@@ -101,6 +101,3 @@ /* jshint -W024 */ | ||
host: 'coreapi.1api.net', | ||
path: '/api/call.cgi', | ||
headers: { | ||
Expect: '' | ||
} | ||
path: '/api/call.cgi' | ||
} | ||
@@ -217,12 +214,2 @@ }); | ||
it("perform an API request [socket cfg w/o expect header]", function(done) { | ||
nock.activate(); //reuse setting from last test | ||
var newcfg = JSON.parse(JSON.stringify(socketcfg)); | ||
var cb = function(r) { | ||
uidxCB(r, done); | ||
}; | ||
newcfg.options.headers = {}; | ||
cl.request(testcmds.getuserindex.COMMAND, newcfg, cb, cb, 'hash'); | ||
}); | ||
it("perform an API request [hash response]", function(done) { | ||
@@ -229,0 +216,0 @@ nock.cleanAll(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78363
1661