[TIMOB-6718] MobileWeb: Ti.Network.HTTPClient doesn't properly implement readyState, timeouts, and error handling
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-20T14:21:06.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Sprint 2011-51, Release 2.0.0, Release 1.8.1 |
Components | MobileWeb |
Labels | merge-1.9.0, stage |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2011-12-16T03:37:32.000+0000 |
Updated | 2017-03-03T23:22:00.000+0000 |
Description
Ti.Network.HTTPClient does not define the proper constants for readyState, nor returns the correct constants when readyState is invoked.
Timeouts are completely incorrectly implemented. The way it was implemented would only work in IE8 which isn't even a supported platform.
Error handling is only tied into connection errors and not 4XX or 5XX response statuses.
Pull request: https://github.com/cb1kenobi/titanium_mobile/pull/8
Merged in to cb1kenobi's repo until 1.8->1.9 transition is stable in appcelerator repo.
Closing ticket as MobileWeb is no longer supported.