Project: titanium
Issue TIMOB-17460: iOS: Ti.Network.createHTTPClient autoRedirect = false is ignored
Here is why and how it can be fixed. https://github.com/appcelerator/APSHTTPClient/pull/16 I debugged why autoRedirect property of Ti.Network.createHTTPClient is ignored for 3.3.0.GA. The default property of autoRedirect is true. When autoRedirect = false is set, self.response.status is always zero in APSHTTPRequest.m Therefore the redirect check if statement if (!self.redirects && self.response.status != 0) does always fall through. [self.response updateResponseParamaters:response]; needs to be called in advance
Story points: 5