it's pretty now and bump version

This commit is contained in:
Bryan MacFarlane
2020-04-23 16:33:34 -04:00
parent fbd137758a
commit 943067fe4c
3 changed files with 16 additions and 16 deletions

View File

@@ -388,10 +388,10 @@ export class HttpClient {
// strip authorization header if redirected to a different hostname
if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
for(let header in headers){
for (let header in headers) {
// header names are case insensitive
if (header.toLowerCase() === "authorization") {
delete headers[header]
if (header.toLowerCase() === 'authorization') {
delete headers[header]
}
}
}