Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-890] setting of X-Requested-With header in HTTPClient needs to be dynamic

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:34.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:38:38.000+0000
Updated2015-02-02T18:40:28.000+0000

Description

http://helpdesk.appcelerator.net/tickets/2225">http://helpdesk.appcelerator.net/tickets/2225

right now it's only excluded for twitter - but there are other services that are having troubles with it.

Comments

  1. Jeff Haynie 2011-04-15

    (from [9a0de5e7bbd1683853455a1e8309686a2cabb210]) Closes #890 . setRequestHeader now can take null as a valid second argument. As such, setRequestHeader('X-Requested-With',null) will successfully clear out that field. http://github.com/appcelerator/titanium_mobile/commit/9a0de5e7bbd1683853455a1e8309686a2cabb210"> http://github.com/appcelerator/titanium_mobile/commit/9a0de5e7bbd16...

JSON Source