request-libcurl
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -43,3 +43,7 @@ 'use strict'; | ||
const customHeaders = [`Host: ${url.hostname}`]; | ||
const customHeaders = []; | ||
if (url.hostname) { | ||
customHeaders.push(`Host: ${url.hostname}`); | ||
} | ||
for (let header in opts.headers) { | ||
@@ -46,0 +50,0 @@ if (opts.headers[header]) { |
{ | ||
"name": "request-libcurl", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Extremely stable HTTP request module built on top of libcurl with retries, timeouts, Promise and async/await API", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"scripts": {}, | ||
"repository": { | ||
@@ -10,0 +8,0 @@ "type": "git", |
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
25684
196