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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "follow-redirects",
3
- "version": "1.15.5",
3
+ "version": "1.15.6",
4
4
  "description": "HTTP and HTTPS modules that follow redirects.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",