[TIMOB-890] setting of X-Requested-With header in HTTPClient needs to be dynamic
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:38:38.000+0000 |
Updated | 2015-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.
(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...