Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Guard against
xhr.getAllResponseHeaders()
being null
From https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#getAllResponseHeaders(): > Returns all the response headers, separated by CRLF, as a string, or null if no response has been received. I discovered this on Android, once when `xhr.getAllResponseHeaders()` evaluated to `null`.
- Loading branch information