{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls/1","id":53457752,"html_url":"https://github.com/TheNounProject/Paw-DjangoCsrfToken/pull/1","diff_url":"https://github.com/TheNounProject/Paw-DjangoCsrfToken/pull/1.diff","patch_url":"https://github.com/TheNounProject/Paw-DjangoCsrfToken/pull/1.patch","issue_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/issues/1","number":1,"state":"closed","locked":false,"title":"Fix use of getHeaderByName","user":{"login":"mittsh","id":1319906,"avatar_url":"https://avatars.githubusercontent.com/u/1319906?v=3","gravatar_id":"","url":"https://api.github.com/users/mittsh","html_url":"https://github.com/mittsh","followers_url":"https://api.github.com/users/mittsh/followers","following_url":"https://api.github.com/users/mittsh/following{/other_user}","gists_url":"https://api.github.com/users/mittsh/gists{/gist_id}","starred_url":"https://api.github.com/users/mittsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mittsh/subscriptions","organizations_url":"https://api.github.com/users/mittsh/orgs","repos_url":"https://api.github.com/users/mittsh/repos","events_url":"https://api.github.com/users/mittsh/events{/privacy}","received_events_url":"https://api.github.com/users/mittsh/received_events","type":"User","site_admin":false},"body":"It's nicer to use `request.getHeaderByName('Cookie ')` instead of `request.getHeaders()['Cookie']` for 2 reasons:\r\n\r\n* it prevents the evaluation of all headers, even for those not required (calculates all instead of only one)\r\n* it doesn't do case-insensitive comparison (header names are case-insensitive in HTTP)\r\n\r\nAlso ended the file with a new line (sorry, too much used to it...a UNIX standard...). Thanks a bunch for your work on this!\r\n","created_at":"2015-12-11T23:33:41Z","updated_at":"2015-12-11T23:36:53Z","closed_at":"2015-12-11T23:36:53Z","merged_at":null,"merge_commit_sha":"bc23cf9f89ea070f07aea2f7b9f8c86bff250a25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls/1/commits","review_comments_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls/1/comments","review_comment_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/issues/1/comments","statuses_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/statuses/a7da4f45d0fe055d246342fcf03d4b5778484538","head":{"label":"mittsh:fix-getHeaderByName","ref":"fix-getHeaderByName","sha":"a7da4f45d0fe055d246342fcf03d4b5778484538","user":{"login":"mittsh","id":1319906,"avatar_url":"https://avatars.githubusercontent.com/u/1319906?v=3","gravatar_id":"","url":"https://api.github.com/users/mittsh","html_url":"https://github.com/mittsh","followers_url":"https://api.github.com/users/mittsh/followers","following_url":"https://api.github.com/users/mittsh/following{/other_user}","gists_url":"https://api.github.com/users/mittsh/gists{/gist_id}","starred_url":"https://api.github.com/users/mittsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mittsh/subscriptions","organizations_url":"https://api.github.com/users/mittsh/orgs","repos_url":"https://api.github.com/users/mittsh/repos","events_url":"https://api.github.com/users/mittsh/events{/privacy}","received_events_url":"https://api.github.com/users/mittsh/received_events","type":"User","site_admin":false},"repo":{"id":47856114,"name":"Paw-DjangoCsrfToken","full_name":"mittsh/Paw-DjangoCsrfToken","owner":{"login":"mittsh","id":1319906,"avatar_url":"https://avatars.githubusercontent.com/u/1319906?v=3","gravatar_id":"","url":"https://api.github.com/users/mittsh","html_url":"https://github.com/mittsh","followers_url":"https://api.github.com/users/mittsh/followers","following_url":"https://api.github.com/users/mittsh/following{/other_user}","gists_url":"https://api.github.com/users/mittsh/gists{/gist_id}","starred_url":"https://api.github.com/users/mittsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mittsh/subscriptions","organizations_url":"https://api.github.com/users/mittsh/orgs","repos_url":"https://api.github.com/users/mittsh/repos","events_url":"https://api.github.com/users/mittsh/events{/privacy}","received_events_url":"https://api.github.com/users/mittsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mittsh/Paw-DjangoCsrfToken","description":"Creates a dynamic value for Paw REST client from Django's CSRF token cookie.","fork":true,"url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken","forks_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/forks","keys_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/teams","hooks_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/hooks","issue_events_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/issues/events{/number}","events_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/events","assignees_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/assignees{/user}","branches_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/branches{/branch}","tags_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/tags","blobs_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/git/refs{/sha}","trees_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/statuses/{sha}","languages_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/languages","stargazers_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/stargazers","contributors_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/contributors","subscribers_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/subscribers","subscription_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/subscription","commits_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/commits{/sha}","git_commits_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/git/commits{/sha}","comments_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/comments{/number}","issue_comment_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/issues/comments{/number}","contents_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/contents/{+path}","compare_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/merges","archive_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/downloads","issues_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/issues{/number}","pulls_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/pulls{/number}","milestones_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/milestones{/number}","notifications_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/labels{/name}","releases_url":"https://api.github.com/repos/mittsh/Paw-DjangoCsrfToken/releases{/id}","created_at":"2015-12-11T23:29:32Z","updated_at":"2015-12-11T23:29:32Z","pushed_at":"2015-12-11T23:31:26Z","git_url":"git://github.com/mittsh/Paw-DjangoCsrfToken.git","ssh_url":"git@github.com:mittsh/Paw-DjangoCsrfToken.git","clone_url":"https://github.com/mittsh/Paw-DjangoCsrfToken.git","svn_url":"https://github.com/mittsh/Paw-DjangoCsrfToken","homepage":null,"size":1,"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":"TheNounProject:master","ref":"master","sha":"c75b2b86de36c14e49e6166092eb75a274b71674","user":{"login":"TheNounProject","id":5726494,"avatar_url":"https://avatars.githubusercontent.com/u/5726494?v=3","gravatar_id":"","url":"https://api.github.com/users/TheNounProject","html_url":"https://github.com/TheNounProject","followers_url":"https://api.github.com/users/TheNounProject/followers","following_url":"https://api.github.com/users/TheNounProject/following{/other_user}","gists_url":"https://api.github.com/users/TheNounProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNounProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNounProject/subscriptions","organizations_url":"https://api.github.com/users/TheNounProject/orgs","repos_url":"https://api.github.com/users/TheNounProject/repos","events_url":"https://api.github.com/users/TheNounProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheNounProject/received_events","type":"Organization","site_admin":false},"repo":{"id":47849242,"name":"Paw-DjangoCsrfToken","full_name":"TheNounProject/Paw-DjangoCsrfToken","owner":{"login":"TheNounProject","id":5726494,"avatar_url":"https://avatars.githubusercontent.com/u/5726494?v=3","gravatar_id":"","url":"https://api.github.com/users/TheNounProject","html_url":"https://github.com/TheNounProject","followers_url":"https://api.github.com/users/TheNounProject/followers","following_url":"https://api.github.com/users/TheNounProject/following{/other_user}","gists_url":"https://api.github.com/users/TheNounProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNounProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNounProject/subscriptions","organizations_url":"https://api.github.com/users/TheNounProject/orgs","repos_url":"https://api.github.com/users/TheNounProject/repos","events_url":"https://api.github.com/users/TheNounProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheNounProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TheNounProject/Paw-DjangoCsrfToken","description":"Creates a dynamic value for Paw REST client from Django's CSRF token cookie.","fork":false,"url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken","forks_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/forks","keys_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/teams","hooks_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/hooks","issue_events_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/issues/events{/number}","events_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/events","assignees_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/assignees{/user}","branches_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/branches{/branch}","tags_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/tags","blobs_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/statuses/{sha}","languages_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/languages","stargazers_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/stargazers","contributors_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/contributors","subscribers_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/subscribers","subscription_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/subscription","commits_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/contents/{+path}","compare_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/merges","archive_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/downloads","issues_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/issues{/number}","pulls_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls{/number}","milestones_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/milestones{/number}","notifications_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/labels{/name}","releases_url":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/releases{/id}","created_at":"2015-12-11T20:25:48Z","updated_at":"2015-12-11T20:26:19Z","pushed_at":"2015-12-11T23:33:41Z","git_url":"git://github.com/TheNounProject/Paw-DjangoCsrfToken.git","ssh_url":"git@github.com:TheNounProject/Paw-DjangoCsrfToken.git","clone_url":"https://github.com/TheNounProject/Paw-DjangoCsrfToken.git","svn_url":"https://github.com/TheNounProject/Paw-DjangoCsrfToken","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls/1"},"html":{"href":"https://github.com/TheNounProject/Paw-DjangoCsrfToken/pull/1"},"issue":{"href":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/issues/1"},"comments":{"href":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/TheNounProject/Paw-DjangoCsrfToken/statuses/a7da4f45d0fe055d246342fcf03d4b5778484538"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":2,"deletions":3,"changed_files":1}}