{"action":"created","comment":{"url":"https://api.github.com/repos/docker/distribution/pulls/comments/31515886","id":31515886,"diff_hunk":"@@ -185,23 +186,25 @@ func TestNewApp(t *testing.T) {\n \t\tt.Fatalf(\"unexpected status code during request: %v\", err)\n \t}\n \n-\tif req.Header.Get(\"Content-Type\") != \"application/json; charset=utf-8\" {\n-\t\tt.Fatalf(\"unexpected content-type: %v != %v\", req.Header.Get(\"Content-Type\"), \"application/json; charset=utf-8\")\n-\t}\n+\t/*\n+\t\tif req.Header.Get(\"Content-Type\") != \"application/json; charset=utf-8\" {","path":"registry/handlers/app_test.go","position":16,"original_position":16,"commit_id":"fdfaceb6c5e85058f4ef531ce84f4a55225b067f","original_commit_id":"fdfaceb6c5e85058f4ef531ce84f4a55225b067f","user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"body":"not sure why I removed it, but whatever the reason it works now so I added it back in.","created_at":"2015-06-02T12:17:06Z","updated_at":"2015-06-02T12:17:06Z","html_url":"https://github.com/docker/distribution/pull/548#discussion_r31515886","pull_request_url":"https://api.github.com/repos/docker/distribution/pulls/548","_links":{"self":{"href":"https://api.github.com/repos/docker/distribution/pulls/comments/31515886"},"html":{"href":"https://github.com/docker/distribution/pull/548#discussion_r31515886"},"pull_request":{"href":"https://api.github.com/repos/docker/distribution/pulls/548"}}},"pull_request":{"url":"https://api.github.com/repos/docker/distribution/pulls/548","id":35931851,"html_url":"https://github.com/docker/distribution/pull/548","diff_url":"https://github.com/docker/distribution/pull/548.diff","patch_url":"https://github.com/docker/distribution/pull/548.patch","issue_url":"https://api.github.com/repos/docker/distribution/issues/548","number":548,"state":"open","locked":false,"title":"Move ErrorCode logic to new errcode package","user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"body":"Part of https://github.com/docker/docker/pull/9509 discussion/design.\r\n\r\nAlso, make HTTP status codes match the ErrorCode by looking it up in the Descriptors.\r\nCloses #525 \r\n\r\nSigned-off-by: Doug Davis <dug@us.ibm.com>","created_at":"2015-05-21T13:12:34Z","updated_at":"2015-06-02T12:17:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f7844733b1e1c2f094f20d2078cccd486ada42b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/distribution/pulls/548/commits","review_comments_url":"https://api.github.com/repos/docker/distribution/pulls/548/comments","review_comment_url":"https://api.github.com/repos/docker/distribution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/distribution/issues/548/comments","statuses_url":"https://api.github.com/repos/docker/distribution/statuses/fdfaceb6c5e85058f4ef531ce84f4a55225b067f","head":{"label":"duglin:MoveErrors","ref":"MoveErrors","sha":"fdfaceb6c5e85058f4ef531ce84f4a55225b067f","user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"repo":{"id":35642465,"name":"distribution","full_name":"duglin/distribution","owner":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duglin/distribution","description":"The Docker toolset to pack, ship, store, and deliver content","fork":true,"url":"https://api.github.com/repos/duglin/distribution","forks_url":"https://api.github.com/repos/duglin/distribution/forks","keys_url":"https://api.github.com/repos/duglin/distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duglin/distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duglin/distribution/teams","hooks_url":"https://api.github.com/repos/duglin/distribution/hooks","issue_events_url":"https://api.github.com/repos/duglin/distribution/issues/events{/number}","events_url":"https://api.github.com/repos/duglin/distribution/events","assignees_url":"https://api.github.com/repos/duglin/distribution/assignees{/user}","branches_url":"https://api.github.com/repos/duglin/distribution/branches{/branch}","tags_url":"https://api.github.com/repos/duglin/distribution/tags","blobs_url":"https://api.github.com/repos/duglin/distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duglin/distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duglin/distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/duglin/distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duglin/distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/duglin/distribution/languages","stargazers_url":"https://api.github.com/repos/duglin/distribution/stargazers","contributors_url":"https://api.github.com/repos/duglin/distribution/contributors","subscribers_url":"https://api.github.com/repos/duglin/distribution/subscribers","subscription_url":"https://api.github.com/repos/duglin/distribution/subscription","commits_url":"https://api.github.com/repos/duglin/distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/duglin/distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/duglin/distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/duglin/distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/duglin/distribution/contents/{+path}","compare_url":"https://api.github.com/repos/duglin/distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duglin/distribution/merges","archive_url":"https://api.github.com/repos/duglin/distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duglin/distribution/downloads","issues_url":"https://api.github.com/repos/duglin/distribution/issues{/number}","pulls_url":"https://api.github.com/repos/duglin/distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/duglin/distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/duglin/distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duglin/distribution/labels{/name}","releases_url":"https://api.github.com/repos/duglin/distribution/releases{/id}","created_at":"2015-05-14T23:33:48Z","updated_at":"2015-05-14T23:33:49Z","pushed_at":"2015-05-31T01:47:21Z","git_url":"git://github.com/duglin/distribution.git","ssh_url":"git@github.com:duglin/distribution.git","clone_url":"https://github.com/duglin/distribution.git","svn_url":"https://github.com/duglin/distribution","homepage":null,"size":2468,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"docker:master","ref":"master","sha":"318af0b1ce30cc2b9564ebb2a4dbb1244f1aaa07","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":28366058,"name":"distribution","full_name":"docker/distribution","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/distribution","description":"The Docker toolset to pack, ship, store, and deliver content","fork":false,"url":"https://api.github.com/repos/docker/distribution","forks_url":"https://api.github.com/repos/docker/distribution/forks","keys_url":"https://api.github.com/repos/docker/distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/distribution/teams","hooks_url":"https://api.github.com/repos/docker/distribution/hooks","issue_events_url":"https://api.github.com/repos/docker/distribution/issues/events{/number}","events_url":"https://api.github.com/repos/docker/distribution/events","assignees_url":"https://api.github.com/repos/docker/distribution/assignees{/user}","branches_url":"https://api.github.com/repos/docker/distribution/branches{/branch}","tags_url":"https://api.github.com/repos/docker/distribution/tags","blobs_url":"https://api.github.com/repos/docker/distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/distribution/languages","stargazers_url":"https://api.github.com/repos/docker/distribution/stargazers","contributors_url":"https://api.github.com/repos/docker/distribution/contributors","subscribers_url":"https://api.github.com/repos/docker/distribution/subscribers","subscription_url":"https://api.github.com/repos/docker/distribution/subscription","commits_url":"https://api.github.com/repos/docker/distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/distribution/contents/{+path}","compare_url":"https://api.github.com/repos/docker/distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/distribution/merges","archive_url":"https://api.github.com/repos/docker/distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/distribution/downloads","issues_url":"https://api.github.com/repos/docker/distribution/issues{/number}","pulls_url":"https://api.github.com/repos/docker/distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/distribution/labels{/name}","releases_url":"https://api.github.com/repos/docker/distribution/releases{/id}","created_at":"2014-12-22T23:49:26Z","updated_at":"2015-06-02T10:11:49Z","pushed_at":"2015-06-02T08:29:36Z","git_url":"git://github.com/docker/distribution.git","ssh_url":"git@github.com:docker/distribution.git","clone_url":"https://github.com/docker/distribution.git","svn_url":"https://github.com/docker/distribution","homepage":null,"size":9527,"stargazers_count":538,"watchers_count":538,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":202,"mirror_url":null,"open_issues_count":128,"forks":202,"open_issues":128,"watchers":538,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/distribution/pulls/548"},"html":{"href":"https://github.com/docker/distribution/pull/548"},"issue":{"href":"https://api.github.com/repos/docker/distribution/issues/548"},"comments":{"href":"https://api.github.com/repos/docker/distribution/issues/548/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/distribution/pulls/548/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/distribution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/distribution/pulls/548/commits"},"statuses":{"href":"https://api.github.com/repos/docker/distribution/statuses/fdfaceb6c5e85058f4ef531ce84f4a55225b067f"}}}}