Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1802] Titanium.setUserAgent is not working

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionFixed
Resolution Date2013-03-08T16:52:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsuserAgent
ReporterThierry Godfroid
AssigneeMostafizur Rahman
Created2013-02-19T13:41:41.000+0000
Updated2016-03-08T07:40:42.000+0000

Description

According to the doc the property Titanium.userAgent is not readonly and there is even a Titanium.setUserAgent(). It just does not work and, frankly, reading the code at iphone/Classes/TopTiModule.m:40, one hardly knows how it could be anything else. I haven't been able to find the setUserAgent() method in source, not familiar enough with it. I know that I can override the useragent with a setRequestHeader in HttpClient but I would like also to use it for auto downloads of images throught URLs.

Comments

  1. Thierry Godfroid 2013-03-08

    Hello, just got notified that this one was fixed which is great. Any idea in which release it will actually be delivered. I see no commit message or such. Thanks for your help Regards, Thierry

JSON Source