request-libcurl
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -93,5 +93,7 @@ 'use strict'; | ||
const headers = {}; | ||
delete _headers[0].result; | ||
for (let headerName in _headers[0]) { | ||
headers[headerName.toLowerCase()] = _headers[0][headerName]; | ||
if (_headers && _headers[0]) { | ||
delete _headers[0].result; | ||
for (let headerName in _headers[0]) { | ||
headers[headerName.toLowerCase()] = _headers[0][headerName]; | ||
} | ||
} | ||
@@ -98,0 +100,0 @@ cb ? cb(void 0, {statusCode, body, headers}) : resolve({statusCode, body, headers}); |
{ | ||
"name": "request-libcurl", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Extremely stable HTTP request module built on top of libcurl with retries, timeouts, Promise and async/await API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
25444
191