@whatwg-node/node-fetch
Advanced tools
Comparing version 0.7.4-alpha-20241125124758-22623cd8c312a8c35092a436e5a2c631dd52f59d to 0.7.4-alpha-20241125125556-f6d4dd923d74499ecd7ef790e4704bf3bffd1892
@@ -87,3 +87,3 @@ "use strict"; | ||
if (fetchRequest.redirect === 'follow') { | ||
const redirectedUrl = new URL_js_1.PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url); | ||
const redirectedUrl = new URL_js_1.PonyfillURL(nodeResponse.headers.location, fetchRequest.url); | ||
const redirectResponse$ = fetchNodeHttp(new Request_js_1.PonyfillRequest(redirectedUrl, fetchRequest)); | ||
@@ -90,0 +90,0 @@ resolve(redirectResponse$.then(redirectResponse => { |
@@ -84,3 +84,3 @@ import { request as httpRequest } from 'http'; | ||
if (fetchRequest.redirect === 'follow') { | ||
const redirectedUrl = new PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url); | ||
const redirectedUrl = new PonyfillURL(nodeResponse.headers.location, fetchRequest.url); | ||
const redirectResponse$ = fetchNodeHttp(new PonyfillRequest(redirectedUrl, fetchRequest)); | ||
@@ -87,0 +87,0 @@ resolve(redirectResponse$.then(redirectResponse => { |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.7.4-alpha-20241125124758-22623cd8c312a8c35092a436e5a2c631dd52f59d", | ||
"version": "0.7.4-alpha-20241125125556-f6d4dd923d74499ecd7ef790e4704bf3bffd1892", | ||
"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
229778