@whatwg-node/node-fetch 0.7.9-alpha-20250213114401-de7d1130414fecb9eaf387c5024f8c53032fc246 → 0.7.9-alpha-20250213115905-c3512e5da088f8ddf908e6a2fdf8b86288cfb74a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/fetchCurl.js +1 -1
- package/esm/fetchCurl.js +1 -1
- package/package.json +1 -1
package/cjs/fetchCurl.js
CHANGED
@@ -118,7 +118,7 @@ function fetchCurl(fetchRequest) {
|
|
118
118
|
.filter(headerFilter => {
|
119
119
|
if (headerFilter && !headerFilter.startsWith('HTTP/')) {
|
120
120
|
if (fetchRequest.redirect === 'error' &&
|
121
|
-
|
121
|
+
headerFilter.toLowerCase().includes('location') &&
|
122
122
|
(0, utils_js_1.shouldRedirect)(status)) {
|
123
123
|
if (!stream.destroyed) {
|
124
124
|
stream.resume();
|
package/esm/fetchCurl.js
CHANGED
@@ -115,7 +115,7 @@ export function fetchCurl(fetchRequest) {
|
|
115
115
|
.filter(headerFilter => {
|
116
116
|
if (headerFilter && !headerFilter.startsWith('HTTP/')) {
|
117
117
|
if (fetchRequest.redirect === 'error' &&
|
118
|
-
|
118
|
+
headerFilter.toLowerCase().includes('location') &&
|
119
119
|
shouldRedirect(status)) {
|
120
120
|
if (!stream.destroyed) {
|
121
121
|
stream.resume();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.7.9-alpha-
|
3
|
+
"version": "0.7.9-alpha-20250213115905-c3512e5da088f8ddf908e6a2fdf8b86288cfb74a",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"dependencies": {
|