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`.
Showing
想要评论请 注册 或 登录