{"action":"opened","number":1416,"pull_request":{"url":"https://api.github.com/repos/manastech/crystal/pulls/1416","id":44435689,"html_url":"https://github.com/manastech/crystal/pull/1416","diff_url":"https://github.com/manastech/crystal/pull/1416.diff","patch_url":"https://github.com/manastech/crystal/pull/1416.patch","issue_url":"https://api.github.com/repos/manastech/crystal/issues/1416","number":1416,"state":"open","locked":false,"title":"normalize dash/underscore separated http header names correctly","user":{"login":"jreinert","id":1074324,"avatar_url":"https://avatars.githubusercontent.com/u/1074324?v=3","gravatar_id":"","url":"https://api.github.com/users/jreinert","html_url":"https://github.com/jreinert","followers_url":"https://api.github.com/users/jreinert/followers","following_url":"https://api.github.com/users/jreinert/following{/other_user}","gists_url":"https://api.github.com/users/jreinert/gists{/gist_id}","starred_url":"https://api.github.com/users/jreinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreinert/subscriptions","organizations_url":"https://api.github.com/users/jreinert/orgs","repos_url":"https://api.github.com/users/jreinert/repos","events_url":"https://api.github.com/users/jreinert/events{/privacy}","received_events_url":"https://api.github.com/users/jreinert/received_events","type":"User","site_admin":false},"body":"``` ruby\r\nrequire \"http/client\"\r\n\r\nheaders = HTTP::Headers {\"CONTENT_TYPE\" => \"a\", \"content-length\" => \"24\", \"X-Forwarded-For\" => \"nobody\"}\r\npp headers\r\nserialized = String.build do |io|\r\n  request = HTTP::Request.new(\"GET\", \"/\", headers)\r\n  request.to_io(io)\r\nend\r\n\r\nputs serialized\r\n```\r\nOutput Before:\r\n\r\n```\r\nheaders = HTTP::Headers{\"Content_type\" => \"a\", \"Content-length\" => \"24\", \"X-forwarded-for\" => \"nobody\"}\r\nGET / HTTP/1.1\r\nContent_type: a\r\nContent-length: 24\r\nX-forwarded-for: nobody\r\n```\r\n\r\nOutput After:\r\n\r\n```\r\nheaders = HTTP::Headers{\"Content-Type\" => \"a\", \"Content-Length\" => \"24\", \"X-Forwarded-For\" => \"nobody\"}\r\nGET / HTTP/1.1\r\nContent-Type: a\r\nContent-Length: 24\r\nX-Forwarded-For: nobody\r\n```","created_at":"2015-09-08T14:03:30Z","updated_at":"2015-09-08T14:03:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/manastech/crystal/pulls/1416/commits","review_comments_url":"https://api.github.com/repos/manastech/crystal/pulls/1416/comments","review_comment_url":"https://api.github.com/repos/manastech/crystal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1416/comments","statuses_url":"https://api.github.com/repos/manastech/crystal/statuses/c3b73726c76efbaa25c30bb4cfb3f3f7e372bd2e","head":{"label":"jreinert:master","ref":"master","sha":"c3b73726c76efbaa25c30bb4cfb3f3f7e372bd2e","user":{"login":"jreinert","id":1074324,"avatar_url":"https://avatars.githubusercontent.com/u/1074324?v=3","gravatar_id":"","url":"https://api.github.com/users/jreinert","html_url":"https://github.com/jreinert","followers_url":"https://api.github.com/users/jreinert/followers","following_url":"https://api.github.com/users/jreinert/following{/other_user}","gists_url":"https://api.github.com/users/jreinert/gists{/gist_id}","starred_url":"https://api.github.com/users/jreinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreinert/subscriptions","organizations_url":"https://api.github.com/users/jreinert/orgs","repos_url":"https://api.github.com/users/jreinert/repos","events_url":"https://api.github.com/users/jreinert/events{/privacy}","received_events_url":"https://api.github.com/users/jreinert/received_events","type":"User","site_admin":false},"repo":{"id":41220228,"name":"crystal","full_name":"jreinert/crystal","owner":{"login":"jreinert","id":1074324,"avatar_url":"https://avatars.githubusercontent.com/u/1074324?v=3","gravatar_id":"","url":"https://api.github.com/users/jreinert","html_url":"https://github.com/jreinert","followers_url":"https://api.github.com/users/jreinert/followers","following_url":"https://api.github.com/users/jreinert/following{/other_user}","gists_url":"https://api.github.com/users/jreinert/gists{/gist_id}","starred_url":"https://api.github.com/users/jreinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreinert/subscriptions","organizations_url":"https://api.github.com/users/jreinert/orgs","repos_url":"https://api.github.com/users/jreinert/repos","events_url":"https://api.github.com/users/jreinert/events{/privacy}","received_events_url":"https://api.github.com/users/jreinert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jreinert/crystal","description":"The Crystal Programming Language","fork":true,"url":"https://api.github.com/repos/jreinert/crystal","forks_url":"https://api.github.com/repos/jreinert/crystal/forks","keys_url":"https://api.github.com/repos/jreinert/crystal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jreinert/crystal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jreinert/crystal/teams","hooks_url":"https://api.github.com/repos/jreinert/crystal/hooks","issue_events_url":"https://api.github.com/repos/jreinert/crystal/issues/events{/number}","events_url":"https://api.github.com/repos/jreinert/crystal/events","assignees_url":"https://api.github.com/repos/jreinert/crystal/assignees{/user}","branches_url":"https://api.github.com/repos/jreinert/crystal/branches{/branch}","tags_url":"https://api.github.com/repos/jreinert/crystal/tags","blobs_url":"https://api.github.com/repos/jreinert/crystal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jreinert/crystal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jreinert/crystal/git/refs{/sha}","trees_url":"https://api.github.com/repos/jreinert/crystal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jreinert/crystal/statuses/{sha}","languages_url":"https://api.github.com/repos/jreinert/crystal/languages","stargazers_url":"https://api.github.com/repos/jreinert/crystal/stargazers","contributors_url":"https://api.github.com/repos/jreinert/crystal/contributors","subscribers_url":"https://api.github.com/repos/jreinert/crystal/subscribers","subscription_url":"https://api.github.com/repos/jreinert/crystal/subscription","commits_url":"https://api.github.com/repos/jreinert/crystal/commits{/sha}","git_commits_url":"https://api.github.com/repos/jreinert/crystal/git/commits{/sha}","comments_url":"https://api.github.com/repos/jreinert/crystal/comments{/number}","issue_comment_url":"https://api.github.com/repos/jreinert/crystal/issues/comments{/number}","contents_url":"https://api.github.com/repos/jreinert/crystal/contents/{+path}","compare_url":"https://api.github.com/repos/jreinert/crystal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jreinert/crystal/merges","archive_url":"https://api.github.com/repos/jreinert/crystal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jreinert/crystal/downloads","issues_url":"https://api.github.com/repos/jreinert/crystal/issues{/number}","pulls_url":"https://api.github.com/repos/jreinert/crystal/pulls{/number}","milestones_url":"https://api.github.com/repos/jreinert/crystal/milestones{/number}","notifications_url":"https://api.github.com/repos/jreinert/crystal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jreinert/crystal/labels{/name}","releases_url":"https://api.github.com/repos/jreinert/crystal/releases{/id}","created_at":"2015-08-22T18:49:46Z","updated_at":"2015-08-22T18:49:48Z","pushed_at":"2015-09-08T13:59:01Z","git_url":"git://github.com/jreinert/crystal.git","ssh_url":"git@github.com:jreinert/crystal.git","clone_url":"https://github.com/jreinert/crystal.git","svn_url":"https://github.com/jreinert/crystal","homepage":"http://crystal-lang.org","size":29395,"stargazers_count":0,"watchers_count":0,"language":"Crystal","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"manastech:master","ref":"master","sha":"3ffd89815465e1ad75a4a4e0757c01630fc47f3c","user":{"login":"manastech","id":1354950,"avatar_url":"https://avatars.githubusercontent.com/u/1354950?v=3","gravatar_id":"","url":"https://api.github.com/users/manastech","html_url":"https://github.com/manastech","followers_url":"https://api.github.com/users/manastech/followers","following_url":"https://api.github.com/users/manastech/following{/other_user}","gists_url":"https://api.github.com/users/manastech/gists{/gist_id}","starred_url":"https://api.github.com/users/manastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manastech/subscriptions","organizations_url":"https://api.github.com/users/manastech/orgs","repos_url":"https://api.github.com/users/manastech/repos","events_url":"https://api.github.com/users/manastech/events{/privacy}","received_events_url":"https://api.github.com/users/manastech/received_events","type":"Organization","site_admin":false},"repo":{"id":6887813,"name":"crystal","full_name":"manastech/crystal","owner":{"login":"manastech","id":1354950,"avatar_url":"https://avatars.githubusercontent.com/u/1354950?v=3","gravatar_id":"","url":"https://api.github.com/users/manastech","html_url":"https://github.com/manastech","followers_url":"https://api.github.com/users/manastech/followers","following_url":"https://api.github.com/users/manastech/following{/other_user}","gists_url":"https://api.github.com/users/manastech/gists{/gist_id}","starred_url":"https://api.github.com/users/manastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manastech/subscriptions","organizations_url":"https://api.github.com/users/manastech/orgs","repos_url":"https://api.github.com/users/manastech/repos","events_url":"https://api.github.com/users/manastech/events{/privacy}","received_events_url":"https://api.github.com/users/manastech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/manastech/crystal","description":"The Crystal Programming Language","fork":false,"url":"https://api.github.com/repos/manastech/crystal","forks_url":"https://api.github.com/repos/manastech/crystal/forks","keys_url":"https://api.github.com/repos/manastech/crystal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manastech/crystal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manastech/crystal/teams","hooks_url":"https://api.github.com/repos/manastech/crystal/hooks","issue_events_url":"https://api.github.com/repos/manastech/crystal/issues/events{/number}","events_url":"https://api.github.com/repos/manastech/crystal/events","assignees_url":"https://api.github.com/repos/manastech/crystal/assignees{/user}","branches_url":"https://api.github.com/repos/manastech/crystal/branches{/branch}","tags_url":"https://api.github.com/repos/manastech/crystal/tags","blobs_url":"https://api.github.com/repos/manastech/crystal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manastech/crystal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manastech/crystal/git/refs{/sha}","trees_url":"https://api.github.com/repos/manastech/crystal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manastech/crystal/statuses/{sha}","languages_url":"https://api.github.com/repos/manastech/crystal/languages","stargazers_url":"https://api.github.com/repos/manastech/crystal/stargazers","contributors_url":"https://api.github.com/repos/manastech/crystal/contributors","subscribers_url":"https://api.github.com/repos/manastech/crystal/subscribers","subscription_url":"https://api.github.com/repos/manastech/crystal/subscription","commits_url":"https://api.github.com/repos/manastech/crystal/commits{/sha}","git_commits_url":"https://api.github.com/repos/manastech/crystal/git/commits{/sha}","comments_url":"https://api.github.com/repos/manastech/crystal/comments{/number}","issue_comment_url":"https://api.github.com/repos/manastech/crystal/issues/comments{/number}","contents_url":"https://api.github.com/repos/manastech/crystal/contents/{+path}","compare_url":"https://api.github.com/repos/manastech/crystal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manastech/crystal/merges","archive_url":"https://api.github.com/repos/manastech/crystal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manastech/crystal/downloads","issues_url":"https://api.github.com/repos/manastech/crystal/issues{/number}","pulls_url":"https://api.github.com/repos/manastech/crystal/pulls{/number}","milestones_url":"https://api.github.com/repos/manastech/crystal/milestones{/number}","notifications_url":"https://api.github.com/repos/manastech/crystal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manastech/crystal/labels{/name}","releases_url":"https://api.github.com/repos/manastech/crystal/releases{/id}","created_at":"2012-11-27T17:32:32Z","updated_at":"2015-09-08T10:01:49Z","pushed_at":"2015-09-08T11:16:05Z","git_url":"git://github.com/manastech/crystal.git","ssh_url":"git@github.com:manastech/crystal.git","clone_url":"https://github.com/manastech/crystal.git","svn_url":"https://github.com/manastech/crystal","homepage":"http://crystal-lang.org","size":42687,"stargazers_count":3205,"watchers_count":3205,"language":"Crystal","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":233,"mirror_url":null,"open_issues_count":224,"forks":233,"open_issues":224,"watchers":3205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1416"},"html":{"href":"https://github.com/manastech/crystal/pull/1416"},"issue":{"href":"https://api.github.com/repos/manastech/crystal/issues/1416"},"comments":{"href":"https://api.github.com/repos/manastech/crystal/issues/1416/comments"},"review_comments":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1416/comments"},"review_comment":{"href":"https://api.github.com/repos/manastech/crystal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/manastech/crystal/pulls/1416/commits"},"statuses":{"href":"https://api.github.com/repos/manastech/crystal/statuses/c3b73726c76efbaa25c30bb4cfb3f3f7e372bd2e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":6,"changed_files":1}}