{"action":"opened","number":65,"pull_request":{"url":"https://api.github.com/repos/gengo/grpc-gateway/pulls/65","id":48851022,"html_url":"https://github.com/gengo/grpc-gateway/pull/65","diff_url":"https://github.com/gengo/grpc-gateway/pull/65.diff","patch_url":"https://github.com/gengo/grpc-gateway/pull/65.patch","issue_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/65","number":65,"state":"open","locked":false,"title":"Bugfix/handling headers for `Authorization` and `Host`","user":{"login":"mwitkow","id":9655971,"avatar_url":"https://avatars.githubusercontent.com/u/9655971?v=3","gravatar_id":"","url":"https://api.github.com/users/mwitkow","html_url":"https://github.com/mwitkow","followers_url":"https://api.github.com/users/mwitkow/followers","following_url":"https://api.github.com/users/mwitkow/following{/other_user}","gists_url":"https://api.github.com/users/mwitkow/gists{/gist_id}","starred_url":"https://api.github.com/users/mwitkow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwitkow/subscriptions","organizations_url":"https://api.github.com/users/mwitkow/orgs","repos_url":"https://api.github.com/users/mwitkow/repos","events_url":"https://api.github.com/users/mwitkow/events{/privacy}","received_events_url":"https://api.github.com/users/mwitkow/received_events","type":"User","site_admin":false},"body":"Upstream gRPC has a bug where the HTTP2 headers aren't case sensitive. As such, if you call the HTTP1.1 endpoint of GRPC-GW with `Authorization: Bearer foo`, this will be translated into a `Authorization` field of the gRPC Metadata on the server. It means that code written to understand `authorization` header (e.g. based on the gRPC credentials/oauth) won't work:\r\n\r\nupstream bug: https://github.com/grpc/grpc-go/issues/415\r\n\r\nAdd a work around by setting the `authorization` header to lower case. Additionally add propagation of the `Host` header.\r\n\r\nAdd tests.","created_at":"2015-10-27T10:18:29Z","updated_at":"2015-10-27T10:18:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gengo/grpc-gateway/pulls/65/commits","review_comments_url":"https://api.github.com/repos/gengo/grpc-gateway/pulls/65/comments","review_comment_url":"https://api.github.com/repos/gengo/grpc-gateway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/65/comments","statuses_url":"https://api.github.com/repos/gengo/grpc-gateway/statuses/e9d784ca9471d9036a8cca91a9b786e5a24c7eab","head":{"label":"mwitkow:bugfix/handling-headers","ref":"bugfix/handling-headers","sha":"e9d784ca9471d9036a8cca91a9b786e5a24c7eab","user":{"login":"mwitkow","id":9655971,"avatar_url":"https://avatars.githubusercontent.com/u/9655971?v=3","gravatar_id":"","url":"https://api.github.com/users/mwitkow","html_url":"https://github.com/mwitkow","followers_url":"https://api.github.com/users/mwitkow/followers","following_url":"https://api.github.com/users/mwitkow/following{/other_user}","gists_url":"https://api.github.com/users/mwitkow/gists{/gist_id}","starred_url":"https://api.github.com/users/mwitkow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwitkow/subscriptions","organizations_url":"https://api.github.com/users/mwitkow/orgs","repos_url":"https://api.github.com/users/mwitkow/repos","events_url":"https://api.github.com/users/mwitkow/events{/privacy}","received_events_url":"https://api.github.com/users/mwitkow/received_events","type":"User","site_admin":false},"repo":{"id":39796878,"name":"grpc-gateway","full_name":"mwitkow/grpc-gateway","owner":{"login":"mwitkow","id":9655971,"avatar_url":"https://avatars.githubusercontent.com/u/9655971?v=3","gravatar_id":"","url":"https://api.github.com/users/mwitkow","html_url":"https://github.com/mwitkow","followers_url":"https://api.github.com/users/mwitkow/followers","following_url":"https://api.github.com/users/mwitkow/following{/other_user}","gists_url":"https://api.github.com/users/mwitkow/gists{/gist_id}","starred_url":"https://api.github.com/users/mwitkow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwitkow/subscriptions","organizations_url":"https://api.github.com/users/mwitkow/orgs","repos_url":"https://api.github.com/users/mwitkow/repos","events_url":"https://api.github.com/users/mwitkow/events{/privacy}","received_events_url":"https://api.github.com/users/mwitkow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwitkow/grpc-gateway","description":"gRPC to JSON proxy generator","fork":true,"url":"https://api.github.com/repos/mwitkow/grpc-gateway","forks_url":"https://api.github.com/repos/mwitkow/grpc-gateway/forks","keys_url":"https://api.github.com/repos/mwitkow/grpc-gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwitkow/grpc-gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwitkow/grpc-gateway/teams","hooks_url":"https://api.github.com/repos/mwitkow/grpc-gateway/hooks","issue_events_url":"https://api.github.com/repos/mwitkow/grpc-gateway/issues/events{/number}","events_url":"https://api.github.com/repos/mwitkow/grpc-gateway/events","assignees_url":"https://api.github.com/repos/mwitkow/grpc-gateway/assignees{/user}","branches_url":"https://api.github.com/repos/mwitkow/grpc-gateway/branches{/branch}","tags_url":"https://api.github.com/repos/mwitkow/grpc-gateway/tags","blobs_url":"https://api.github.com/repos/mwitkow/grpc-gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwitkow/grpc-gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwitkow/grpc-gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwitkow/grpc-gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwitkow/grpc-gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/mwitkow/grpc-gateway/languages","stargazers_url":"https://api.github.com/repos/mwitkow/grpc-gateway/stargazers","contributors_url":"https://api.github.com/repos/mwitkow/grpc-gateway/contributors","subscribers_url":"https://api.github.com/repos/mwitkow/grpc-gateway/subscribers","subscription_url":"https://api.github.com/repos/mwitkow/grpc-gateway/subscription","commits_url":"https://api.github.com/repos/mwitkow/grpc-gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwitkow/grpc-gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwitkow/grpc-gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwitkow/grpc-gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwitkow/grpc-gateway/contents/{+path}","compare_url":"https://api.github.com/repos/mwitkow/grpc-gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwitkow/grpc-gateway/merges","archive_url":"https://api.github.com/repos/mwitkow/grpc-gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwitkow/grpc-gateway/downloads","issues_url":"https://api.github.com/repos/mwitkow/grpc-gateway/issues{/number}","pulls_url":"https://api.github.com/repos/mwitkow/grpc-gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/mwitkow/grpc-gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/mwitkow/grpc-gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwitkow/grpc-gateway/labels{/name}","releases_url":"https://api.github.com/repos/mwitkow/grpc-gateway/releases{/id}","created_at":"2015-07-27T20:42:56Z","updated_at":"2015-07-27T20:42:57Z","pushed_at":"2015-10-27T10:16:09Z","git_url":"git://github.com/mwitkow/grpc-gateway.git","ssh_url":"git@github.com:mwitkow/grpc-gateway.git","clone_url":"https://github.com/mwitkow/grpc-gateway.git","svn_url":"https://github.com/mwitkow/grpc-gateway","homepage":null,"size":318,"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":"gengo:master","ref":"master","sha":"b2a7448583a5497bc244e24d6473cf725dcce216","user":{"login":"gengo","id":1681251,"avatar_url":"https://avatars.githubusercontent.com/u/1681251?v=3","gravatar_id":"","url":"https://api.github.com/users/gengo","html_url":"https://github.com/gengo","followers_url":"https://api.github.com/users/gengo/followers","following_url":"https://api.github.com/users/gengo/following{/other_user}","gists_url":"https://api.github.com/users/gengo/gists{/gist_id}","starred_url":"https://api.github.com/users/gengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gengo/subscriptions","organizations_url":"https://api.github.com/users/gengo/orgs","repos_url":"https://api.github.com/users/gengo/repos","events_url":"https://api.github.com/users/gengo/events{/privacy}","received_events_url":"https://api.github.com/users/gengo/received_events","type":"Organization","site_admin":false},"repo":{"id":33352201,"name":"grpc-gateway","full_name":"gengo/grpc-gateway","owner":{"login":"gengo","id":1681251,"avatar_url":"https://avatars.githubusercontent.com/u/1681251?v=3","gravatar_id":"","url":"https://api.github.com/users/gengo","html_url":"https://github.com/gengo","followers_url":"https://api.github.com/users/gengo/followers","following_url":"https://api.github.com/users/gengo/following{/other_user}","gists_url":"https://api.github.com/users/gengo/gists{/gist_id}","starred_url":"https://api.github.com/users/gengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gengo/subscriptions","organizations_url":"https://api.github.com/users/gengo/orgs","repos_url":"https://api.github.com/users/gengo/repos","events_url":"https://api.github.com/users/gengo/events{/privacy}","received_events_url":"https://api.github.com/users/gengo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gengo/grpc-gateway","description":"gRPC to JSON proxy generator","fork":false,"url":"https://api.github.com/repos/gengo/grpc-gateway","forks_url":"https://api.github.com/repos/gengo/grpc-gateway/forks","keys_url":"https://api.github.com/repos/gengo/grpc-gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gengo/grpc-gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gengo/grpc-gateway/teams","hooks_url":"https://api.github.com/repos/gengo/grpc-gateway/hooks","issue_events_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/events{/number}","events_url":"https://api.github.com/repos/gengo/grpc-gateway/events","assignees_url":"https://api.github.com/repos/gengo/grpc-gateway/assignees{/user}","branches_url":"https://api.github.com/repos/gengo/grpc-gateway/branches{/branch}","tags_url":"https://api.github.com/repos/gengo/grpc-gateway/tags","blobs_url":"https://api.github.com/repos/gengo/grpc-gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gengo/grpc-gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gengo/grpc-gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/gengo/grpc-gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gengo/grpc-gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/gengo/grpc-gateway/languages","stargazers_url":"https://api.github.com/repos/gengo/grpc-gateway/stargazers","contributors_url":"https://api.github.com/repos/gengo/grpc-gateway/contributors","subscribers_url":"https://api.github.com/repos/gengo/grpc-gateway/subscribers","subscription_url":"https://api.github.com/repos/gengo/grpc-gateway/subscription","commits_url":"https://api.github.com/repos/gengo/grpc-gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/gengo/grpc-gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/gengo/grpc-gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/gengo/grpc-gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/gengo/grpc-gateway/contents/{+path}","compare_url":"https://api.github.com/repos/gengo/grpc-gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gengo/grpc-gateway/merges","archive_url":"https://api.github.com/repos/gengo/grpc-gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gengo/grpc-gateway/downloads","issues_url":"https://api.github.com/repos/gengo/grpc-gateway/issues{/number}","pulls_url":"https://api.github.com/repos/gengo/grpc-gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/gengo/grpc-gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/gengo/grpc-gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gengo/grpc-gateway/labels{/name}","releases_url":"https://api.github.com/repos/gengo/grpc-gateway/releases{/id}","created_at":"2015-04-03T07:25:13Z","updated_at":"2015-10-27T09:21:40Z","pushed_at":"2015-10-22T00:29:47Z","git_url":"git://github.com/gengo/grpc-gateway.git","ssh_url":"git@github.com:gengo/grpc-gateway.git","clone_url":"https://github.com/gengo/grpc-gateway.git","svn_url":"https://github.com/gengo/grpc-gateway","homepage":null,"size":670,"stargazers_count":181,"watchers_count":181,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":13,"forks":23,"open_issues":13,"watchers":181,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gengo/grpc-gateway/pulls/65"},"html":{"href":"https://github.com/gengo/grpc-gateway/pull/65"},"issue":{"href":"https://api.github.com/repos/gengo/grpc-gateway/issues/65"},"comments":{"href":"https://api.github.com/repos/gengo/grpc-gateway/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/gengo/grpc-gateway/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/gengo/grpc-gateway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gengo/grpc-gateway/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/gengo/grpc-gateway/statuses/e9d784ca9471d9036a8cca91a9b786e5a24c7eab"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":27,"deletions":10,"changed_files":2}}