-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
Here is the relevant code:
cordova-plugin-wkwebview-file-xhr/src/www/ios/xhr-polyfill.js
Lines 666 to 679 in 510de93
| HttpHandler._error = function (reqContext, error, underlyingErrorCode) | |
| { | |
| var isTimeout = (HttpHandler._UNDERLYING_ERROR_CODES.NSURLErrorTimedOut === underlyingErrorCode); | |
| if (isTimeout) | |
| { | |
| reqContext.status = 0; | |
| reqContext.statusText = reqContext.responseText = null; | |
| } | |
| else | |
| { | |
| reqContext.status = 400; | |
| reqContext.statusText = "Bad Request"; | |
| reqContext.responseText = error; |
Why does it do that? An application should expect 0 status code for network issues, and defined http status codes such as 400 should be expected to only be what comes back from server.
Metadata
Metadata
Assignees
Labels
No labels