{ "id": "169022", "key": "TIMOB-24983", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-11-20T14:33:22.000+0000", "created": "2017-07-19T22:46:52.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "HTTPClient", "android", "network", "parity" ], "versions": [], "issuelinks": [ { "id": "58587", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "175388", "key": "TIMOB-28060", "fields": { "summary": "Ti.API: Parity issue in HTTPClient response headers", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-20T14:33:22.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nThis is a feature parity issue between Android, iOS, and Windows Phone when using HTTPClient.\r\n\r\nOn iOS, you access the HTTP response's headers via the \"responseHeaders\" property, which returns them as a dictionary...\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network.HTTPClient-property-responseHeaders\r\n\r\nOn Android and Windows Phone, you have to access the headers via the \"allResponseHeaders\" property instead, which returns all headers concatenated to a single string...\r\nhttp://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network.HTTPClient-property-allResponseHeaders\r\n\r\n*Solution:*\r\nAdd \"responseHeaders\" property support to Android. The way iOS is doing it (returning a dictionary) is the superior solution. (In the future, we should add support to Windows as well.)\r\n\r\n*Note:*\r\nCheck if iOS includes the response's \"status line\" in 1 of it's returned headers. This is because Android's Java HttpURLConnection.getHeaderFields() method does return the status line in the returned HashMap, which is using a null key. In my opinion, we should not return status line as a header in JavaScript (this is what our HTTPClient.statusText property is for), but we should double check our iOS implementation and follow what it does.\r\n", "attachment": [], "flagged": false, "summary": "Android: Add \"HTTPClient.responseHeaders\" support (feature parity with iOS)", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "456981", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, Waiting on Jenkins build. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-22T14:34:44.000+0000", "updated": "2020-09-22T14:34:44.000+0000" }, { "id": "457653", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK version {{9.3.0.v20201119063936}}.\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/11899", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-20T14:33:14.000+0000", "updated": "2020-11-20T14:33:14.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }