follow-redirects 1.15.4 → 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 +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -27,6 +27,7 @@ var preservedUrlFields = [
27
27
  "protocol",
28
28
  "query",
29
29
  "search",
30
+ "hash",
30
31
  ];
31
32
 
32
33
  // Create handlers that pass events from native requests
@@ -460,7 +461,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
460
461
  redirectUrl.protocol !== "https:" ||
461
462
  redirectUrl.host !== currentHost &&
462
463
  !isSubdomain(redirectUrl.host, currentHost)) {
463
- removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
464
+ removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
464
465
  }
465
466
 
466
467
  // Evaluate the beforeRedirect callback
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "follow-redirects",
3
- "version": "1.15.4",
3
+ "version": "1.15.6",
4
4
  "description": "HTTP and HTTPS modules that follow redirects.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",