follow-redirects 1.15.5 → 1.15.6
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -461,7 +461,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
|
|
461
461
|
redirectUrl.protocol !== "https:" ||
|
462
462
|
redirectUrl.host !== currentHost &&
|
463
463
|
!isSubdomain(redirectUrl.host, currentHost)) {
|
464
|
-
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
464
|
+
removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
|
465
465
|
}
|
466
466
|
|
467
467
|
// Evaluate the beforeRedirect callback
|