{ "id": "174600", "key": "TIMOB-27701", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-12-30T12:01:44.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "engTriage", "httpclient", "ios", "requestHeader" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2020-09-23T08:20:03.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We noticed that if we re-run a request with new request headers (e.g. with a new access token), the new header value is just appended to the old header instead of overwriting the the value.\r\n\r\nFor example, if my initial request has {{request.setRequestHeader('Test', 'myValue');}} and I overwrite it with {{request.setRequestHeader('Test', 'myNewValue');}}, the actual header sent to the server is {{'Test: myValue, myNewValue'}}.\r\n\r\nThis is very critical for production grade apps! I would fix it myself, but unfortunately APSHTTPClient (the library used internally) is closed source.", "attachment": [], "flagged": false, "summary": "iOS: Changing request-header in HTTPClient re-appends the new header value", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "457002", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any update on this?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-23T08:20:03.000+0000", "updated": "2020-09-23T08:20:03.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }