forked from JakeChampion/fetch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix promise being rejected on IE 9 when server response is invalid
Reject all HTTP codes that are not in the 100..599 range. When an empty reply is received from the server, `xhr.onerror` callback should get triggered. IE 9, however, triggers the `onload` callback with status code 12152 that stands for: ERROR_HTTP_INVALID_SERVER_RESPONSE The server response could not be parsed. http://support.microsoft.com/kb/193625
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters