ostinelli / net-http2

NetHttp2 is an HTTP/2 client for Ruby.
MIT License
140 stars 31 forks source link

':authority' pseudo-header field support #9

Closed syusui-s closed 8 years ago

syusui-s commented 8 years ago

According to RFC7540 8.1.2.3, the client SHOULD use ':authority' request pseudo-header field instead of 'host' request header field. There are some websites which does not respond to the request that contains 'host' header field. If the request contains 'host', Google will close the connection immediately and the response by Twitter will be 404.

ostinelli commented 8 years ago

Thank you for your contribution. Can you please squash into a single reviewable commit, such a minor change should not require more. Thank you.

syusui-s commented 8 years ago

Thanks for your reply. I squashed several commit into a single commit.

ostinelli commented 8 years ago

Thank you, will merge soon.

ostinelli commented 8 years ago

This is now merged in and released in 0.13.1. Thank you for your contribution!