{ "id": "61228", "key": "TIMOB-596", "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": [ { "id": "11220", "name": "Release 1.1.0", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:38.000+0000", "created": "2011-04-15T02:32:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone", "xhr" ], "versions": [], "issuelinks": [], "assignee": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:38.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

allow the request header \"User-Agent\" to be custom in XHR\nsetRequestHeader since some webservices need specific\ncustomization.

{html}", "attachment": [], "flagged": false, "summary": "allow user agent to be overriden in XHR setRequestHeader", "creator": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123635", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [52bd16ae00ee86a3de10ccb5444529e14a6489fb])\nfix user-agent override issue in XHR. [#596\nstate:resolved] \nhttp://github.com/appcelerator/titanium_mobile/commit/52bd16ae00ee8...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:32:44.000+0000", "updated": "2011-04-15T02:32:44.000+0000" }, { "id": "123636", "author": { "name": "sherwinterunez", "key": "sherwinterunez", "displayName": "Sherwin Terunez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

XHR setRequestHeader in titanium mobile is not yet\noverridable.

\n

c.setRequestHeader(\"User-Agent\", \"Mozilla/5.0 (Windows; U;\nWindows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3\n(.NET CLR 3.5.30729)\");
\nc.open('GET', url);
\nc.send();

\n

125.xx.xx.12 www.xxx.com -\n[14/May/2010:12:12:48 +0400] \"GET / HTTP/1.1\" 200 18653 \"-\"\n\"Appcelerator Titanium/1.2.0 (iPhone Simulator/3.1; iPhone OS;\nen_US;)\"
\n125.xx.xx.12 www.xxx.com -\n[14/May/2010:12:14:52 +0400] \"GET / HTTP/1.1\" 200 18653 \"-\"\n\"Appcelerator Titanium/1.2.0 (iPhone Simulator/3.1; iPhone OS;\nen_US;)\"

{html}", "updateAuthor": { "name": "sherwinterunez", "key": "sherwinterunez", "displayName": "Sherwin Terunez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:32:44.000+0000", "updated": "2011-04-15T02:32:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }