Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16817] Android: autoRedirect property in createHTTPClient method does not work

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.2
Fix Version/sn/a
ComponentsAndroid
Labelshttpclient, reprod
ReporterGuile
AssigneeUnknown
Created2014-04-04T09:31:23.000+0000
Updated2018-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

Comments

  1. Ritu Agrawal 2014-04-06

    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.
  2. jithinpv 2014-08-29

    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
  3. Lee Morris 2017-06-27

    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

JSON Source