| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8fd0476 commit 37e6e3d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -194,10 +194,13 @@ export class XMLHttpRequest { | |||
| 194 | 194 | public getResponseHeader(header: string): string { | |
| 195 | 195 | if (types.isString(header) && this._readyState > 1 | |
| 196 | 196 | && this._headers | |
| 197 | - && this._headers[header] | ||
| 198 | 197 | && !this._errorFlag | |
| 199 | 198 | ) { | |
| 200 | - return this._headers[header]; | ||
| 199 | + for (var i in this._headers) { | ||
| 200 | + if (i.toLowerCase() === header.toLowerCase()) { | ||
| 201 | + return this._headers[i]; | ||
| 202 | + } | ||
| 203 | + } | ||
| 201 | 204 | } | |
| 202 | 205 | ||
| 203 | 206 | return null; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments