[TIMOB-16817] Android: autoRedirect property in createHTTPClient method does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.2 |
Fix Version/s | n/a |
Components | Android |
Labels | httpclient, reprod |
Reporter | Guile |
Assignee | Unknown |
Created | 2014-04-04T09:31:23.000+0000 |
Updated | 2018-02-28T20:04:02.000+0000 |
Description
When I set autoRedirect = false on contruct it is not set.
var xhr = Ti.Network.createHTTPClient({autoRedirect :false});
if (xhr.getAutoRedirect()) {
Ti.API.info('redirect');
} else {
Ti.API.info('no redirect');
}
xhr.setAutoRedirect(false);
if (xhr.getAutoRedirect()) {
Ti.API.info('redirect');
} else {
Ti.API.info('no redirect');
}
Logs are :
redirect
no redirect
Moving this ticket to engineering as I can reproduce this issue with the provided test case on Android platform. Same test works fine on iOS platform.
Issue reproduces Titanium SDK version 3.4.0 master, 3.3.0.GA, 3.2.3.GA, 3.2.2.GA Titanium Studio, build: 3.3.0.201407100905 Titanium Command-Line Interface CLI version 3.3.0, Android device : Motorola Moto G, Android version : 4.4.4
I am able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170623141152 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131