{"action":"closed","number":3006,"pull_request":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/3006","id":36859736,"html_url":"https://github.com/tomchristie/django-rest-framework/pull/3006","diff_url":"https://github.com/tomchristie/django-rest-framework/pull/3006.diff","patch_url":"https://github.com/tomchristie/django-rest-framework/pull/3006.patch","issue_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3006","number":3006,"state":"closed","locked":false,"title":"Handle invalid characters in \"Authorization: token ...\" headers","user":{"login":"osantana","id":160418,"avatar_url":"https://avatars.githubusercontent.com/u/160418?v=3","gravatar_id":"","url":"https://api.github.com/users/osantana","html_url":"https://github.com/osantana","followers_url":"https://api.github.com/users/osantana/followers","following_url":"https://api.github.com/users/osantana/following{/other_user}","gists_url":"https://api.github.com/users/osantana/gists{/gist_id}","starred_url":"https://api.github.com/users/osantana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osantana/subscriptions","organizations_url":"https://api.github.com/users/osantana/orgs","repos_url":"https://api.github.com/users/osantana/repos","events_url":"https://api.github.com/users/osantana/events{/privacy}","received_events_url":"https://api.github.com/users/osantana/received_events","type":"User","site_admin":false},"body":"Resolve #2928.\r\n\r\nRequest headers are passed as `bytes()` on Py3 (or `str()` on Py2), so, we try to decode it before calling `self.authenticate_credentials()`.\r\n\r\nIf we got an error decoding token we raise an AuthenticationFailed() exception.","created_at":"2015-06-03T17:58:49Z","updated_at":"2015-06-16T20:40:15Z","closed_at":"2015-06-16T20:40:15Z","merged_at":"2015-06-16T20:40:15Z","merge_commit_sha":"11213dff2212d9750397233a096804b6fa9b3be5","assignee":null,"milestone":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/milestones/24","html_url":"https://github.com/tomchristie/django-rest-framework/milestones/3.1.4%20Release","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/milestones/24/labels","id":1142716,"number":24,"title":"3.1.4 Release","description":"","creator":{"login":"xordoquy","id":2340654,"avatar_url":"https://avatars.githubusercontent.com/u/2340654?v=3","gravatar_id":"","url":"https://api.github.com/users/xordoquy","html_url":"https://github.com/xordoquy","followers_url":"https://api.github.com/users/xordoquy/followers","following_url":"https://api.github.com/users/xordoquy/following{/other_user}","gists_url":"https://api.github.com/users/xordoquy/gists{/gist_id}","starred_url":"https://api.github.com/users/xordoquy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xordoquy/subscriptions","organizations_url":"https://api.github.com/users/xordoquy/orgs","repos_url":"https://api.github.com/users/xordoquy/repos","events_url":"https://api.github.com/users/xordoquy/events{/privacy}","received_events_url":"https://api.github.com/users/xordoquy/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":6,"state":"open","created_at":"2015-06-01T11:31:01Z","updated_at":"2015-06-16T20:40:15Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/3006/commits","review_comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/3006/comments","review_comment_url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3006/comments","statuses_url":"https://api.github.com/repos/tomchristie/django-rest-framework/statuses/7ae71deb845e0cbe020a4054ba46ab4bed44d6e3","head":{"label":"osantana:master","ref":"master","sha":"7ae71deb845e0cbe020a4054ba46ab4bed44d6e3","user":{"login":"osantana","id":160418,"avatar_url":"https://avatars.githubusercontent.com/u/160418?v=3","gravatar_id":"","url":"https://api.github.com/users/osantana","html_url":"https://github.com/osantana","followers_url":"https://api.github.com/users/osantana/followers","following_url":"https://api.github.com/users/osantana/following{/other_user}","gists_url":"https://api.github.com/users/osantana/gists{/gist_id}","starred_url":"https://api.github.com/users/osantana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osantana/subscriptions","organizations_url":"https://api.github.com/users/osantana/orgs","repos_url":"https://api.github.com/users/osantana/repos","events_url":"https://api.github.com/users/osantana/events{/privacy}","received_events_url":"https://api.github.com/users/osantana/received_events","type":"User","site_admin":false},"repo":{"id":36819151,"name":"django-rest-framework","full_name":"osantana/django-rest-framework","owner":{"login":"osantana","id":160418,"avatar_url":"https://avatars.githubusercontent.com/u/160418?v=3","gravatar_id":"","url":"https://api.github.com/users/osantana","html_url":"https://github.com/osantana","followers_url":"https://api.github.com/users/osantana/followers","following_url":"https://api.github.com/users/osantana/following{/other_user}","gists_url":"https://api.github.com/users/osantana/gists{/gist_id}","starred_url":"https://api.github.com/users/osantana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osantana/subscriptions","organizations_url":"https://api.github.com/users/osantana/orgs","repos_url":"https://api.github.com/users/osantana/repos","events_url":"https://api.github.com/users/osantana/events{/privacy}","received_events_url":"https://api.github.com/users/osantana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/osantana/django-rest-framework","description":"Web APIs for Django.","fork":true,"url":"https://api.github.com/repos/osantana/django-rest-framework","forks_url":"https://api.github.com/repos/osantana/django-rest-framework/forks","keys_url":"https://api.github.com/repos/osantana/django-rest-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osantana/django-rest-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osantana/django-rest-framework/teams","hooks_url":"https://api.github.com/repos/osantana/django-rest-framework/hooks","issue_events_url":"https://api.github.com/repos/osantana/django-rest-framework/issues/events{/number}","events_url":"https://api.github.com/repos/osantana/django-rest-framework/events","assignees_url":"https://api.github.com/repos/osantana/django-rest-framework/assignees{/user}","branches_url":"https://api.github.com/repos/osantana/django-rest-framework/branches{/branch}","tags_url":"https://api.github.com/repos/osantana/django-rest-framework/tags","blobs_url":"https://api.github.com/repos/osantana/django-rest-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osantana/django-rest-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osantana/django-rest-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/osantana/django-rest-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osantana/django-rest-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/osantana/django-rest-framework/languages","stargazers_url":"https://api.github.com/repos/osantana/django-rest-framework/stargazers","contributors_url":"https://api.github.com/repos/osantana/django-rest-framework/contributors","subscribers_url":"https://api.github.com/repos/osantana/django-rest-framework/subscribers","subscription_url":"https://api.github.com/repos/osantana/django-rest-framework/subscription","commits_url":"https://api.github.com/repos/osantana/django-rest-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/osantana/django-rest-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/osantana/django-rest-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/osantana/django-rest-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/osantana/django-rest-framework/contents/{+path}","compare_url":"https://api.github.com/repos/osantana/django-rest-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osantana/django-rest-framework/merges","archive_url":"https://api.github.com/repos/osantana/django-rest-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osantana/django-rest-framework/downloads","issues_url":"https://api.github.com/repos/osantana/django-rest-framework/issues{/number}","pulls_url":"https://api.github.com/repos/osantana/django-rest-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/osantana/django-rest-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/osantana/django-rest-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osantana/django-rest-framework/labels{/name}","releases_url":"https://api.github.com/repos/osantana/django-rest-framework/releases{/id}","created_at":"2015-06-03T17:25:40Z","updated_at":"2015-06-03T17:25:42Z","pushed_at":"2015-06-03T17:55:42Z","git_url":"git://github.com/osantana/django-rest-framework.git","ssh_url":"git@github.com:osantana/django-rest-framework.git","clone_url":"https://github.com/osantana/django-rest-framework.git","svn_url":"https://github.com/osantana/django-rest-framework","homepage":"www.django-rest-framework.org","size":17703,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tomchristie:master","ref":"master","sha":"0c66c7cfa6df065eab89bb3b88db49012ae06d60","user":{"login":"tomchristie","id":647359,"avatar_url":"https://avatars.githubusercontent.com/u/647359?v=3","gravatar_id":"","url":"https://api.github.com/users/tomchristie","html_url":"https://github.com/tomchristie","followers_url":"https://api.github.com/users/tomchristie/followers","following_url":"https://api.github.com/users/tomchristie/following{/other_user}","gists_url":"https://api.github.com/users/tomchristie/gists{/gist_id}","starred_url":"https://api.github.com/users/tomchristie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomchristie/subscriptions","organizations_url":"https://api.github.com/users/tomchristie/orgs","repos_url":"https://api.github.com/users/tomchristie/repos","events_url":"https://api.github.com/users/tomchristie/events{/privacy}","received_events_url":"https://api.github.com/users/tomchristie/received_events","type":"User","site_admin":false},"repo":{"id":1431547,"name":"django-rest-framework","full_name":"tomchristie/django-rest-framework","owner":{"login":"tomchristie","id":647359,"avatar_url":"https://avatars.githubusercontent.com/u/647359?v=3","gravatar_id":"","url":"https://api.github.com/users/tomchristie","html_url":"https://github.com/tomchristie","followers_url":"https://api.github.com/users/tomchristie/followers","following_url":"https://api.github.com/users/tomchristie/following{/other_user}","gists_url":"https://api.github.com/users/tomchristie/gists{/gist_id}","starred_url":"https://api.github.com/users/tomchristie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomchristie/subscriptions","organizations_url":"https://api.github.com/users/tomchristie/orgs","repos_url":"https://api.github.com/users/tomchristie/repos","events_url":"https://api.github.com/users/tomchristie/events{/privacy}","received_events_url":"https://api.github.com/users/tomchristie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomchristie/django-rest-framework","description":"Web APIs for Django.","fork":false,"url":"https://api.github.com/repos/tomchristie/django-rest-framework","forks_url":"https://api.github.com/repos/tomchristie/django-rest-framework/forks","keys_url":"https://api.github.com/repos/tomchristie/django-rest-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomchristie/django-rest-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomchristie/django-rest-framework/teams","hooks_url":"https://api.github.com/repos/tomchristie/django-rest-framework/hooks","issue_events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/events{/number}","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/events","assignees_url":"https://api.github.com/repos/tomchristie/django-rest-framework/assignees{/user}","branches_url":"https://api.github.com/repos/tomchristie/django-rest-framework/branches{/branch}","tags_url":"https://api.github.com/repos/tomchristie/django-rest-framework/tags","blobs_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomchristie/django-rest-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/tomchristie/django-rest-framework/languages","stargazers_url":"https://api.github.com/repos/tomchristie/django-rest-framework/stargazers","contributors_url":"https://api.github.com/repos/tomchristie/django-rest-framework/contributors","subscribers_url":"https://api.github.com/repos/tomchristie/django-rest-framework/subscribers","subscription_url":"https://api.github.com/repos/tomchristie/django-rest-framework/subscription","commits_url":"https://api.github.com/repos/tomchristie/django-rest-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomchristie/django-rest-framework/contents/{+path}","compare_url":"https://api.github.com/repos/tomchristie/django-rest-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomchristie/django-rest-framework/merges","archive_url":"https://api.github.com/repos/tomchristie/django-rest-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomchristie/django-rest-framework/downloads","issues_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues{/number}","pulls_url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/tomchristie/django-rest-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/tomchristie/django-rest-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/labels{/name}","releases_url":"https://api.github.com/repos/tomchristie/django-rest-framework/releases{/id}","created_at":"2011-03-02T17:13:56Z","updated_at":"2015-06-16T20:38:22Z","pushed_at":"2015-06-16T20:40:15Z","git_url":"git://github.com/tomchristie/django-rest-framework.git","ssh_url":"git@github.com:tomchristie/django-rest-framework.git","clone_url":"https://github.com/tomchristie/django-rest-framework.git","svn_url":"https://github.com/tomchristie/django-rest-framework","homepage":"www.django-rest-framework.org","size":32738,"stargazers_count":4156,"watchers_count":4156,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1320,"mirror_url":null,"open_issues_count":141,"forks":1320,"open_issues":141,"watchers":4156,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/3006"},"html":{"href":"https://github.com/tomchristie/django-rest-framework/pull/3006"},"issue":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3006"},"comments":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3006/comments"},"review_comments":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/3006/comments"},"review_comment":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/3006/commits"},"statuses":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/statuses/7ae71deb845e0cbe020a4054ba46ab4bed44d6e3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"xordoquy","id":2340654,"avatar_url":"https://avatars.githubusercontent.com/u/2340654?v=3","gravatar_id":"","url":"https://api.github.com/users/xordoquy","html_url":"https://github.com/xordoquy","followers_url":"https://api.github.com/users/xordoquy/followers","following_url":"https://api.github.com/users/xordoquy/following{/other_user}","gists_url":"https://api.github.com/users/xordoquy/gists{/gist_id}","starred_url":"https://api.github.com/users/xordoquy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xordoquy/subscriptions","organizations_url":"https://api.github.com/users/xordoquy/orgs","repos_url":"https://api.github.com/users/xordoquy/repos","events_url":"https://api.github.com/users/xordoquy/events{/privacy}","received_events_url":"https://api.github.com/users/xordoquy/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":15,"deletions":1,"changed_files":2}}