Project: titanium
Issue TIMOB-17612: Titanium Android: HTTPClient doesn't decompress gzipped data for error responses
Gzipped data isn't decompressed if the response status code is >=400 (https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/network/src/java/ti/modules/titanium/network/TiHTTPClient.java#L273-L275) Whereas for response status codes <400, the response is properly decompressed. (https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/network/src/java/ti/modules/titanium/network/TiHTTPClient.java#L285)
Story points: 5