[TIMOB-8510] Ti API: Provide a Way To Override the Accept-Encoding header in the HTTPClient
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | James Sugrue |
Assignee | Unknown |
Created | 2012-01-24T01:22:48.000+0000 |
Updated | 2018-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.
No comments