@whatwg-node/node-fetch
Advanced tools
Comparing version 0.7.4-alpha-20241125125556-f6d4dd923d74499ecd7ef790e4704bf3bffd1892 to 0.7.4-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40
@@ -87,3 +87,3 @@ "use strict"; | ||
if (fetchRequest.redirect === 'follow') { | ||
const redirectedUrl = new URL_js_1.PonyfillURL(nodeResponse.headers.location, fetchRequest.url); | ||
const redirectedUrl = new URL_js_1.PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url); | ||
const redirectResponse$ = fetchNodeHttp(new Request_js_1.PonyfillRequest(redirectedUrl, fetchRequest)); | ||
@@ -90,0 +90,0 @@ resolve(redirectResponse$.then(redirectResponse => { |
@@ -25,2 +25,3 @@ "use strict"; | ||
this.pathname = this.pathname || baseParsed.pathname; | ||
this.port = this.port || baseParsed.port; | ||
} | ||
@@ -27,0 +28,0 @@ } |
@@ -84,3 +84,3 @@ import { request as httpRequest } from 'http'; | ||
if (fetchRequest.redirect === 'follow') { | ||
const redirectedUrl = new PonyfillURL(nodeResponse.headers.location, fetchRequest.url); | ||
const redirectedUrl = new PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url); | ||
const redirectResponse$ = fetchNodeHttp(new PonyfillRequest(redirectedUrl, fetchRequest)); | ||
@@ -87,0 +87,0 @@ resolve(redirectResponse$.then(redirectResponse => { |
@@ -21,2 +21,3 @@ import { resolveObjectURL } from 'buffer'; | ||
this.pathname = this.pathname || baseParsed.pathname; | ||
this.port = this.port || baseParsed.port; | ||
} | ||
@@ -23,0 +24,0 @@ } |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.7.4-alpha-20241125125556-f6d4dd923d74499ecd7ef790e4704bf3bffd1892", | ||
"version": "0.7.4-alpha-20241125130302-670fd9851060fb8e736194f703f4026f9566bf40", | ||
"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
229938
5927