Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8510] Ti API: Provide a Way To Override the Accept-Encoding header in the HTTPClient

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJames Sugrue
AssigneeUnknown
Created2012-01-24T01:22:48.000+0000
Updated2018-02-28T20:04:23.000+0000

Description

The Accept-Encoding header is currently ignored when set on the HTTPClient. The following code has no affect on the header sent out - it always defaults to gzip xhr.open("POST", "http://url.tld/api_jsonrpc.php"); xhr.setRequestHeader("Accept-Encoding", ""); Looking at the generated code, gzip is always set to be the Accept-Encoding header.

Comments

No comments

JSON Source