[TIMOB-13163] iOS: HTTPClient setRequestHeader does not work for some headers
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | api, ios |
Reporter | Stefan Hes |
Assignee | Unknown |
Created | 2013-03-21T11:33:04.000+0000 |
Updated | 2018-02-28T20:04:07.000+0000 |
Description
Problem description
When I create a HTTPClient and use the setRequestHeader method this doesn't have effect for some headers.
Headers that are nog being set:
Accept-Encoding (in the code example i set this to 'gzip, deflate', in the sniffer the value is 'gzip'.)
Connection (in the code example i set this to 'Keep-Alive', in the sniffer the value is 'close'.)
(maybe there are more headers that are not being set but I tested with this 2 headers)
Headers that are set correctly:
Accept
Accept-Language
User-Agent
In the attachment you can find the code as well as a screenprint of fiddler (the http sniffer tool i use)
Attachments
Seeing similar behavior on iOS only. Works as expected on Android (TC-3707)