@whatwg-node/node-fetch
Advanced tools
Comparing version 0.5.8 to 0.5.9-alpha-20240321100335-2a21e23626e787685b44e4ef16b60924f682eaf0
@@ -65,2 +65,6 @@ "use strict"; | ||
const contentLengthInHeaders = this.headers.get('content-length'); | ||
if (bodyInit == null && !contentLengthInHeaders) { | ||
this.contentLength = 0; | ||
this.headers.set('content-length', '0'); | ||
} | ||
if (!contentLengthInHeaders) { | ||
@@ -67,0 +71,0 @@ if (this.contentLength) { |
@@ -62,2 +62,6 @@ var _a; | ||
const contentLengthInHeaders = this.headers.get('content-length'); | ||
if (bodyInit == null && !contentLengthInHeaders) { | ||
this.contentLength = 0; | ||
this.headers.set('content-length', '0'); | ||
} | ||
if (!contentLengthInHeaders) { | ||
@@ -64,0 +68,0 @@ if (this.contentLength) { |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.5.8", | ||
"version": "0.5.9-alpha-20240321100335-2a21e23626e787685b44e4ef16b60924f682eaf0", | ||
"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
151545
3850