{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/14451","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/14451/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/14451/comments","events_url":"https://api.github.com/repos/golang/go/issues/14451/events","html_url":"https://github.com/golang/go/issues/14451","id":135258299,"number":14451,"title":"net/http: don't require Host header for \"PRI * HTTP/2.0\" requests","user":{"login":"mtojek","id":14044910,"avatar_url":"https://avatars.githubusercontent.com/u/14044910?v=3","gravatar_id":"","url":"https://api.github.com/users/mtojek","html_url":"https://github.com/mtojek","followers_url":"https://api.github.com/users/mtojek/followers","following_url":"https://api.github.com/users/mtojek/following{/other_user}","gists_url":"https://api.github.com/users/mtojek/gists{/gist_id}","starred_url":"https://api.github.com/users/mtojek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtojek/subscriptions","organizations_url":"https://api.github.com/users/mtojek/orgs","repos_url":"https://api.github.com/users/mtojek/repos","events_url":"https://api.github.com/users/mtojek/events{/privacy}","received_events_url":"https://api.github.com/users/mtojek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/31","html_url":"https://github.com/golang/go/milestones/Go1.7","labels_url":"https://api.github.com/repos/golang/go/milestones/31/labels","id":1414133,"number":31,"title":"Go1.7","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":217,"closed_issues":38,"state":"open","created_at":"2015-11-16T16:57:07Z","updated_at":"2016-02-21T21:05:10Z","due_on":"2016-07-31T07:00:00Z","closed_at":null},"comments":3,"created_at":"2016-02-21T20:58:25Z","updated_at":"2016-02-21T21:28:20Z","closed_at":null,"body":"Hi,\r\n\r\nI have been running two instances of simple HTTP server hidden behind HAProxy configured to terminate SSL and proxy further decrypted traffic.\r\nUnfortunately, the implementation of http.Server connection handling processes HTTP/2.0 requests only when their TLS protos are manifestly defined (through TLSNextProto).\r\nNow, proxying traffic through HAProxy (mode TCP) finishes with 400 Bad Request while `PRI * HTTP/2.0` cannot be considered as valid Request-Line.\r\n\r\nBest regards,\r\nMarcin"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/186922832","html_url":"https://github.com/golang/go/issues/14451#issuecomment-186922832","issue_url":"https://api.github.com/repos/golang/go/issues/14451","id":186922832,"user":{"login":"mtojek","id":14044910,"avatar_url":"https://avatars.githubusercontent.com/u/14044910?v=3","gravatar_id":"","url":"https://api.github.com/users/mtojek","html_url":"https://github.com/mtojek","followers_url":"https://api.github.com/users/mtojek/followers","following_url":"https://api.github.com/users/mtojek/following{/other_user}","gists_url":"https://api.github.com/users/mtojek/gists{/gist_id}","starred_url":"https://api.github.com/users/mtojek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtojek/subscriptions","organizations_url":"https://api.github.com/users/mtojek/orgs","repos_url":"https://api.github.com/users/mtojek/repos","events_url":"https://api.github.com/users/mtojek/events{/privacy}","received_events_url":"https://api.github.com/users/mtojek/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T21:28:20Z","updated_at":"2016-02-21T21:28:20Z","body":"I agree with @tamird . Different way of handling HTTP requests in two versions of protocol should be solved by any strategy design pattern, even by multiplexing. I can only advise to consider websocket handling to be included in the multiplexing solution. `req.expectsContinue()` looks a bit weird..."}}