@whatwg-node/node-fetch
Advanced tools
Comparing version 0.5.13 to 0.5.14-alpha-20240724164605-68168d4c7410c581e44e67ad3c6a1f34683ac280
@@ -33,2 +33,5 @@ "use strict"; | ||
const nodeHeaders = headersSerializer(fetchRequest.headers); | ||
if (nodeHeaders['accept-encoding'] == null) { | ||
nodeHeaders['accept-encoding'] = 'gzip, deflate, br'; | ||
} | ||
const nodeRequest = requestFn(fetchRequest.url, { | ||
@@ -35,0 +38,0 @@ method: fetchRequest.method, |
@@ -30,2 +30,5 @@ import { request as httpRequest } from 'http'; | ||
const nodeHeaders = headersSerializer(fetchRequest.headers); | ||
if (nodeHeaders['accept-encoding'] == null) { | ||
nodeHeaders['accept-encoding'] = 'gzip, deflate, br'; | ||
} | ||
const nodeRequest = requestFn(fetchRequest.url, { | ||
@@ -32,0 +35,0 @@ method: fetchRequest.method, |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.5.13", | ||
"version": "0.5.14-alpha-20240724164605-68168d4c7410c581e44e67ad3c6a1f34683ac280", | ||
"description": "Fetch API implementation for Node", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
166632
4263