{"action":"opened","number":486,"pull_request":{"url":"https://api.github.com/repos/iron/iron/pulls/486","id":87595305,"html_url":"https://github.com/iron/iron/pull/486","diff_url":"https://github.com/iron/iron/pull/486.diff","patch_url":"https://github.com/iron/iron/pull/486.patch","issue_url":"https://api.github.com/repos/iron/iron/issues/486","number":486,"state":"open","locked":false,"title":"(fix) Don't reject HTTP <= 1.0 requests without a Host header.","user":{"login":"Hoverbear","id":130903,"avatar_url":"https://avatars.githubusercontent.com/u/130903?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoverbear","html_url":"https://github.com/Hoverbear","followers_url":"https://api.github.com/users/Hoverbear/followers","following_url":"https://api.github.com/users/Hoverbear/following{/other_user}","gists_url":"https://api.github.com/users/Hoverbear/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoverbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoverbear/subscriptions","organizations_url":"https://api.github.com/users/Hoverbear/orgs","repos_url":"https://api.github.com/users/Hoverbear/repos","events_url":"https://api.github.com/users/Hoverbear/events{/privacy}","received_events_url":"https://api.github.com/users/Hoverbear/received_events","type":"User","site_admin":false},"body":"This assumes the local_addr is good enough to generate a URL against, but that's probably not going to be true often (ever?). I'm open to better suggestions.\r\n\r\n```bash\r\n$ curl --dump-header - -0 -H 'Host:' localhost:3000\r\nHTTP/1.0 200 OK\r\nDate: Sat, 01 Oct 2016 07:52:37 GMT\r\nContent-Type: text/plain\r\nContent-Length: 12\r\n\r\nHello world!%\r\n```\r\n\r\nThis is a reopened version of #362 and fixes #327.","created_at":"2016-10-01T07:54:07Z","updated_at":"2016-10-01T07:54:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iron/iron/pulls/486/commits","review_comments_url":"https://api.github.com/repos/iron/iron/pulls/486/comments","review_comment_url":"https://api.github.com/repos/iron/iron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iron/iron/issues/486/comments","statuses_url":"https://api.github.com/repos/iron/iron/statuses/5e56686fa2cb02ad294f5de45b9055058293f866","head":{"label":"iron:bug/http_10","ref":"bug/http_10","sha":"5e56686fa2cb02ad294f5de45b9055058293f866","user":{"login":"iron","id":7853871,"avatar_url":"https://avatars.githubusercontent.com/u/7853871?v=3","gravatar_id":"","url":"https://api.github.com/users/iron","html_url":"https://github.com/iron","followers_url":"https://api.github.com/users/iron/followers","following_url":"https://api.github.com/users/iron/following{/other_user}","gists_url":"https://api.github.com/users/iron/gists{/gist_id}","starred_url":"https://api.github.com/users/iron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iron/subscriptions","organizations_url":"https://api.github.com/users/iron/orgs","repos_url":"https://api.github.com/users/iron/repos","events_url":"https://api.github.com/users/iron/events{/privacy}","received_events_url":"https://api.github.com/users/iron/received_events","type":"Organization","site_admin":false},"repo":{"id":20702627,"name":"iron","full_name":"iron/iron","owner":{"login":"iron","id":7853871,"avatar_url":"https://avatars.githubusercontent.com/u/7853871?v=3","gravatar_id":"","url":"https://api.github.com/users/iron","html_url":"https://github.com/iron","followers_url":"https://api.github.com/users/iron/followers","following_url":"https://api.github.com/users/iron/following{/other_user}","gists_url":"https://api.github.com/users/iron/gists{/gist_id}","starred_url":"https://api.github.com/users/iron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iron/subscriptions","organizations_url":"https://api.github.com/users/iron/orgs","repos_url":"https://api.github.com/users/iron/repos","events_url":"https://api.github.com/users/iron/events{/privacy}","received_events_url":"https://api.github.com/users/iron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iron/iron","description":"An Extensible, Concurrent Web Framework for Rust","fork":false,"url":"https://api.github.com/repos/iron/iron","forks_url":"https://api.github.com/repos/iron/iron/forks","keys_url":"https://api.github.com/repos/iron/iron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iron/iron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iron/iron/teams","hooks_url":"https://api.github.com/repos/iron/iron/hooks","issue_events_url":"https://api.github.com/repos/iron/iron/issues/events{/number}","events_url":"https://api.github.com/repos/iron/iron/events","assignees_url":"https://api.github.com/repos/iron/iron/assignees{/user}","branches_url":"https://api.github.com/repos/iron/iron/branches{/branch}","tags_url":"https://api.github.com/repos/iron/iron/tags","blobs_url":"https://api.github.com/repos/iron/iron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iron/iron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iron/iron/git/refs{/sha}","trees_url":"https://api.github.com/repos/iron/iron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iron/iron/statuses/{sha}","languages_url":"https://api.github.com/repos/iron/iron/languages","stargazers_url":"https://api.github.com/repos/iron/iron/stargazers","contributors_url":"https://api.github.com/repos/iron/iron/contributors","subscribers_url":"https://api.github.com/repos/iron/iron/subscribers","subscription_url":"https://api.github.com/repos/iron/iron/subscription","commits_url":"https://api.github.com/repos/iron/iron/commits{/sha}","git_commits_url":"https://api.github.com/repos/iron/iron/git/commits{/sha}","comments_url":"https://api.github.com/repos/iron/iron/comments{/number}","issue_comment_url":"https://api.github.com/repos/iron/iron/issues/comments{/number}","contents_url":"https://api.github.com/repos/iron/iron/contents/{+path}","compare_url":"https://api.github.com/repos/iron/iron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iron/iron/merges","archive_url":"https://api.github.com/repos/iron/iron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iron/iron/downloads","issues_url":"https://api.github.com/repos/iron/iron/issues{/number}","pulls_url":"https://api.github.com/repos/iron/iron/pulls{/number}","milestones_url":"https://api.github.com/repos/iron/iron/milestones{/number}","notifications_url":"https://api.github.com/repos/iron/iron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iron/iron/labels{/name}","releases_url":"https://api.github.com/repos/iron/iron/releases{/id}","deployments_url":"https://api.github.com/repos/iron/iron/deployments","created_at":"2014-06-10T21:37:29Z","updated_at":"2016-09-30T12:08:49Z","pushed_at":"2016-10-01T07:51:12Z","git_url":"git://github.com/iron/iron.git","ssh_url":"git@github.com:iron/iron.git","clone_url":"https://github.com/iron/iron.git","svn_url":"https://github.com/iron/iron","homepage":"http://ironframework.io","size":854,"stargazers_count":3378,"watchers_count":3378,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":243,"mirror_url":null,"open_issues_count":37,"forks":243,"open_issues":37,"watchers":3378,"default_branch":"master"}},"base":{"label":"iron:master","ref":"master","sha":"80ba97488339bbcc230396451064b4ddcb7ff73e","user":{"login":"iron","id":7853871,"avatar_url":"https://avatars.githubusercontent.com/u/7853871?v=3","gravatar_id":"","url":"https://api.github.com/users/iron","html_url":"https://github.com/iron","followers_url":"https://api.github.com/users/iron/followers","following_url":"https://api.github.com/users/iron/following{/other_user}","gists_url":"https://api.github.com/users/iron/gists{/gist_id}","starred_url":"https://api.github.com/users/iron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iron/subscriptions","organizations_url":"https://api.github.com/users/iron/orgs","repos_url":"https://api.github.com/users/iron/repos","events_url":"https://api.github.com/users/iron/events{/privacy}","received_events_url":"https://api.github.com/users/iron/received_events","type":"Organization","site_admin":false},"repo":{"id":20702627,"name":"iron","full_name":"iron/iron","owner":{"login":"iron","id":7853871,"avatar_url":"https://avatars.githubusercontent.com/u/7853871?v=3","gravatar_id":"","url":"https://api.github.com/users/iron","html_url":"https://github.com/iron","followers_url":"https://api.github.com/users/iron/followers","following_url":"https://api.github.com/users/iron/following{/other_user}","gists_url":"https://api.github.com/users/iron/gists{/gist_id}","starred_url":"https://api.github.com/users/iron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iron/subscriptions","organizations_url":"https://api.github.com/users/iron/orgs","repos_url":"https://api.github.com/users/iron/repos","events_url":"https://api.github.com/users/iron/events{/privacy}","received_events_url":"https://api.github.com/users/iron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iron/iron","description":"An Extensible, Concurrent Web Framework for Rust","fork":false,"url":"https://api.github.com/repos/iron/iron","forks_url":"https://api.github.com/repos/iron/iron/forks","keys_url":"https://api.github.com/repos/iron/iron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iron/iron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iron/iron/teams","hooks_url":"https://api.github.com/repos/iron/iron/hooks","issue_events_url":"https://api.github.com/repos/iron/iron/issues/events{/number}","events_url":"https://api.github.com/repos/iron/iron/events","assignees_url":"https://api.github.com/repos/iron/iron/assignees{/user}","branches_url":"https://api.github.com/repos/iron/iron/branches{/branch}","tags_url":"https://api.github.com/repos/iron/iron/tags","blobs_url":"https://api.github.com/repos/iron/iron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iron/iron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iron/iron/git/refs{/sha}","trees_url":"https://api.github.com/repos/iron/iron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iron/iron/statuses/{sha}","languages_url":"https://api.github.com/repos/iron/iron/languages","stargazers_url":"https://api.github.com/repos/iron/iron/stargazers","contributors_url":"https://api.github.com/repos/iron/iron/contributors","subscribers_url":"https://api.github.com/repos/iron/iron/subscribers","subscription_url":"https://api.github.com/repos/iron/iron/subscription","commits_url":"https://api.github.com/repos/iron/iron/commits{/sha}","git_commits_url":"https://api.github.com/repos/iron/iron/git/commits{/sha}","comments_url":"https://api.github.com/repos/iron/iron/comments{/number}","issue_comment_url":"https://api.github.com/repos/iron/iron/issues/comments{/number}","contents_url":"https://api.github.com/repos/iron/iron/contents/{+path}","compare_url":"https://api.github.com/repos/iron/iron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iron/iron/merges","archive_url":"https://api.github.com/repos/iron/iron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iron/iron/downloads","issues_url":"https://api.github.com/repos/iron/iron/issues{/number}","pulls_url":"https://api.github.com/repos/iron/iron/pulls{/number}","milestones_url":"https://api.github.com/repos/iron/iron/milestones{/number}","notifications_url":"https://api.github.com/repos/iron/iron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iron/iron/labels{/name}","releases_url":"https://api.github.com/repos/iron/iron/releases{/id}","deployments_url":"https://api.github.com/repos/iron/iron/deployments","created_at":"2014-06-10T21:37:29Z","updated_at":"2016-09-30T12:08:49Z","pushed_at":"2016-10-01T07:51:12Z","git_url":"git://github.com/iron/iron.git","ssh_url":"git@github.com:iron/iron.git","clone_url":"https://github.com/iron/iron.git","svn_url":"https://github.com/iron/iron","homepage":"http://ironframework.io","size":854,"stargazers_count":3378,"watchers_count":3378,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":243,"mirror_url":null,"open_issues_count":37,"forks":243,"open_issues":37,"watchers":3378,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iron/iron/pulls/486"},"html":{"href":"https://github.com/iron/iron/pull/486"},"issue":{"href":"https://api.github.com/repos/iron/iron/issues/486"},"comments":{"href":"https://api.github.com/repos/iron/iron/issues/486/comments"},"review_comments":{"href":"https://api.github.com/repos/iron/iron/pulls/486/comments"},"review_comment":{"href":"https://api.github.com/repos/iron/iron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iron/iron/pulls/486/commits"},"statuses":{"href":"https://api.github.com/repos/iron/iron/statuses/5e56686fa2cb02ad294f5de45b9055058293f866"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":7,"changed_files":1}}
{"actor":{"display_login":"Hoverbear"}}