{"action":"opened","number":50,"pull_request":{"url":"https://api.github.com/repos/stormpath/stormpath.js/pulls/50","id":57374841,"html_url":"https://github.com/stormpath/stormpath.js/pull/50","diff_url":"https://github.com/stormpath/stormpath.js/pull/50.diff","patch_url":"https://github.com/stormpath/stormpath.js/pull/50.patch","issue_url":"https://api.github.com/repos/stormpath/stormpath.js/issues/50","number":50,"state":"open","locked":false,"title":"Checking result of xhr.getAllResponseHeaders() before using it","user":{"login":"lgiraudel","id":487214,"avatar_url":"https://avatars.githubusercontent.com/u/487214?v=3","gravatar_id":"","url":"https://api.github.com/users/lgiraudel","html_url":"https://github.com/lgiraudel","followers_url":"https://api.github.com/users/lgiraudel/followers","following_url":"https://api.github.com/users/lgiraudel/following{/other_user}","gists_url":"https://api.github.com/users/lgiraudel/gists{/gist_id}","starred_url":"https://api.github.com/users/lgiraudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgiraudel/subscriptions","organizations_url":"https://api.github.com/users/lgiraudel/orgs","repos_url":"https://api.github.com/users/lgiraudel/repos","events_url":"https://api.github.com/users/lgiraudel/events{/privacy}","received_events_url":"https://api.github.com/users/lgiraudel/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nWe are currently using a 0.3.1 version of your lib and it seems that old browsers have troubles with the xhr.getAllResponseHeaders() function which doesn't return anything.\r\nThis bug results to a `x[1] is undefined` message (or `c[1] is undefined` for minified version).\r\n\r\n![Example](https://dl.dropboxusercontent.com/u/3141901/Screenshot%202016-01-25%20at%2014.35.50.png)\r\n\r\nWe have noticed this bug in Firefox prior the version 21, which seems to match [this bugzilla ticket](https://bugzilla.mozilla.org/show_bug.cgi?id=608735).\r\nWe have this bug in Opera Mini too (v7.5 and prior).\r\n\r\nUnfortunately we can't upgrade to stormpath.js 0.4.0 or 0.5.0 for now so I propose this little fix to check the result of xhr.getAllResponseHeaders() before using its content.","created_at":"2016-01-27T15:26:30Z","updated_at":"2016-01-27T15:26:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stormpath/stormpath.js/pulls/50/commits","review_comments_url":"https://api.github.com/repos/stormpath/stormpath.js/pulls/50/comments","review_comment_url":"https://api.github.com/repos/stormpath/stormpath.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stormpath/stormpath.js/issues/50/comments","statuses_url":"https://api.github.com/repos/stormpath/stormpath.js/statuses/c2c203d0f51ec1b83532b9fa2770d9d6087a7c9d","head":{"label":"lgiraudel:0.3.x","ref":"0.3.x","sha":"c2c203d0f51ec1b83532b9fa2770d9d6087a7c9d","user":{"login":"lgiraudel","id":487214,"avatar_url":"https://avatars.githubusercontent.com/u/487214?v=3","gravatar_id":"","url":"https://api.github.com/users/lgiraudel","html_url":"https://github.com/lgiraudel","followers_url":"https://api.github.com/users/lgiraudel/followers","following_url":"https://api.github.com/users/lgiraudel/following{/other_user}","gists_url":"https://api.github.com/users/lgiraudel/gists{/gist_id}","starred_url":"https://api.github.com/users/lgiraudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgiraudel/subscriptions","organizations_url":"https://api.github.com/users/lgiraudel/orgs","repos_url":"https://api.github.com/users/lgiraudel/repos","events_url":"https://api.github.com/users/lgiraudel/events{/privacy}","received_events_url":"https://api.github.com/users/lgiraudel/received_events","type":"User","site_admin":false},"repo":{"id":50511417,"name":"stormpath.js","full_name":"lgiraudel/stormpath.js","owner":{"login":"lgiraudel","id":487214,"avatar_url":"https://avatars.githubusercontent.com/u/487214?v=3","gravatar_id":"","url":"https://api.github.com/users/lgiraudel","html_url":"https://github.com/lgiraudel","followers_url":"https://api.github.com/users/lgiraudel/followers","following_url":"https://api.github.com/users/lgiraudel/following{/other_user}","gists_url":"https://api.github.com/users/lgiraudel/gists{/gist_id}","starred_url":"https://api.github.com/users/lgiraudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgiraudel/subscriptions","organizations_url":"https://api.github.com/users/lgiraudel/orgs","repos_url":"https://api.github.com/users/lgiraudel/repos","events_url":"https://api.github.com/users/lgiraudel/events{/privacy}","received_events_url":"https://api.github.com/users/lgiraudel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lgiraudel/stormpath.js","description":"Stormpath JavaScript support for browser clients","fork":true,"url":"https://api.github.com/repos/lgiraudel/stormpath.js","forks_url":"https://api.github.com/repos/lgiraudel/stormpath.js/forks","keys_url":"https://api.github.com/repos/lgiraudel/stormpath.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lgiraudel/stormpath.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lgiraudel/stormpath.js/teams","hooks_url":"https://api.github.com/repos/lgiraudel/stormpath.js/hooks","issue_events_url":"https://api.github.com/repos/lgiraudel/stormpath.js/issues/events{/number}","events_url":"https://api.github.com/repos/lgiraudel/stormpath.js/events","assignees_url":"https://api.github.com/repos/lgiraudel/stormpath.js/assignees{/user}","branches_url":"https://api.github.com/repos/lgiraudel/stormpath.js/branches{/branch}","tags_url":"https://api.github.com/repos/lgiraudel/stormpath.js/tags","blobs_url":"https://api.github.com/repos/lgiraudel/stormpath.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lgiraudel/stormpath.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lgiraudel/stormpath.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/lgiraudel/stormpath.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lgiraudel/stormpath.js/statuses/{sha}","languages_url":"https://api.github.com/repos/lgiraudel/stormpath.js/languages","stargazers_url":"https://api.github.com/repos/lgiraudel/stormpath.js/stargazers","contributors_url":"https://api.github.com/repos/lgiraudel/stormpath.js/contributors","subscribers_url":"https://api.github.com/repos/lgiraudel/stormpath.js/subscribers","subscription_url":"https://api.github.com/repos/lgiraudel/stormpath.js/subscription","commits_url":"https://api.github.com/repos/lgiraudel/stormpath.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/lgiraudel/stormpath.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/lgiraudel/stormpath.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/lgiraudel/stormpath.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/lgiraudel/stormpath.js/contents/{+path}","compare_url":"https://api.github.com/repos/lgiraudel/stormpath.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lgiraudel/stormpath.js/merges","archive_url":"https://api.github.com/repos/lgiraudel/stormpath.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lgiraudel/stormpath.js/downloads","issues_url":"https://api.github.com/repos/lgiraudel/stormpath.js/issues{/number}","pulls_url":"https://api.github.com/repos/lgiraudel/stormpath.js/pulls{/number}","milestones_url":"https://api.github.com/repos/lgiraudel/stormpath.js/milestones{/number}","notifications_url":"https://api.github.com/repos/lgiraudel/stormpath.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lgiraudel/stormpath.js/labels{/name}","releases_url":"https://api.github.com/repos/lgiraudel/stormpath.js/releases{/id}","deployments_url":"https://api.github.com/repos/lgiraudel/stormpath.js/deployments","created_at":"2016-01-27T14:04:41Z","updated_at":"2016-01-27T14:04:42Z","pushed_at":"2016-01-27T15:23:44Z","git_url":"git://github.com/lgiraudel/stormpath.js.git","ssh_url":"git@github.com:lgiraudel/stormpath.js.git","clone_url":"https://github.com/lgiraudel/stormpath.js.git","svn_url":"https://github.com/lgiraudel/stormpath.js","homepage":null,"size":109,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stormpath:master","ref":"master","sha":"7200651bec4c6f11d9a2a2cf576a78a7865b1bba","user":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"repo":{"id":21590769,"name":"stormpath.js","full_name":"stormpath/stormpath.js","owner":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stormpath/stormpath.js","description":"Stormpath JavaScript support for browser clients","fork":false,"url":"https://api.github.com/repos/stormpath/stormpath.js","forks_url":"https://api.github.com/repos/stormpath/stormpath.js/forks","keys_url":"https://api.github.com/repos/stormpath/stormpath.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stormpath/stormpath.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stormpath/stormpath.js/teams","hooks_url":"https://api.github.com/repos/stormpath/stormpath.js/hooks","issue_events_url":"https://api.github.com/repos/stormpath/stormpath.js/issues/events{/number}","events_url":"https://api.github.com/repos/stormpath/stormpath.js/events","assignees_url":"https://api.github.com/repos/stormpath/stormpath.js/assignees{/user}","branches_url":"https://api.github.com/repos/stormpath/stormpath.js/branches{/branch}","tags_url":"https://api.github.com/repos/stormpath/stormpath.js/tags","blobs_url":"https://api.github.com/repos/stormpath/stormpath.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stormpath/stormpath.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stormpath/stormpath.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/stormpath/stormpath.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stormpath/stormpath.js/statuses/{sha}","languages_url":"https://api.github.com/repos/stormpath/stormpath.js/languages","stargazers_url":"https://api.github.com/repos/stormpath/stormpath.js/stargazers","contributors_url":"https://api.github.com/repos/stormpath/stormpath.js/contributors","subscribers_url":"https://api.github.com/repos/stormpath/stormpath.js/subscribers","subscription_url":"https://api.github.com/repos/stormpath/stormpath.js/subscription","commits_url":"https://api.github.com/repos/stormpath/stormpath.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/stormpath/stormpath.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/stormpath/stormpath.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/stormpath/stormpath.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/stormpath/stormpath.js/contents/{+path}","compare_url":"https://api.github.com/repos/stormpath/stormpath.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stormpath/stormpath.js/merges","archive_url":"https://api.github.com/repos/stormpath/stormpath.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stormpath/stormpath.js/downloads","issues_url":"https://api.github.com/repos/stormpath/stormpath.js/issues{/number}","pulls_url":"https://api.github.com/repos/stormpath/stormpath.js/pulls{/number}","milestones_url":"https://api.github.com/repos/stormpath/stormpath.js/milestones{/number}","notifications_url":"https://api.github.com/repos/stormpath/stormpath.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stormpath/stormpath.js/labels{/name}","releases_url":"https://api.github.com/repos/stormpath/stormpath.js/releases{/id}","deployments_url":"https://api.github.com/repos/stormpath/stormpath.js/deployments","created_at":"2014-07-07T23:38:05Z","updated_at":"2016-01-11T20:49:05Z","pushed_at":"2016-01-27T01:48:46Z","git_url":"git://github.com/stormpath/stormpath.js.git","ssh_url":"git@github.com:stormpath/stormpath.js.git","clone_url":"https://github.com/stormpath/stormpath.js.git","svn_url":"https://github.com/stormpath/stormpath.js","homepage":null,"size":118,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stormpath/stormpath.js/pulls/50"},"html":{"href":"https://github.com/stormpath/stormpath.js/pull/50"},"issue":{"href":"https://api.github.com/repos/stormpath/stormpath.js/issues/50"},"comments":{"href":"https://api.github.com/repos/stormpath/stormpath.js/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/stormpath/stormpath.js/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/stormpath/stormpath.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stormpath/stormpath.js/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/stormpath/stormpath.js/statuses/c2c203d0f51ec1b83532b9fa2770d9d6087a7c9d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":3,"changed_files":3}}