New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any HTTP/2 request fails on current HTTPie versions - Connection-specific header field present: b'connection' #8
Comments
@00dani Can you try running |
It helps! With HTTPie 0.9.9 and httpie-http2 0.0.1, installing the master branch of Hyper seems to fix this issue: $ pip3 install -U git+https://github.com/Lukasa/hyper.git
Collecting git+https://github.com/Lukasa/hyper.git
Cloning https://github.com/Lukasa/hyper.git to /private/var/folders/sj/13hkwxcd7s7fdc7hjdhltn9h0000gn/T/pip-npvgdq8f-build
Requirement already up-to-date: h2!=2.5.0,<3.0,>=2.4 in /usr/local/lib/python3.6/site-packages (from hyper==0.8.0.dev0)
Requirement already up-to-date: hyperframe<4.0,>=3.2 in /usr/local/lib/python3.6/site-packages (from hyper==0.8.0.dev0)
Requirement already up-to-date: hpack<3,>=2.2 in /usr/local/lib/python3.6/site-packages (from h2!=2.5.0,<3.0,>=2.4->hyper==0.8.0.dev0)
Installing collected packages: hyper
Found existing installation: hyper 0.7.0
Uninstalling hyper-0.7.0:
Successfully uninstalled hyper-0.7.0
Running setup.py install for hyper ... done
Successfully installed hyper-0.8.0.dev0
$ http https://google.com
HTTP/2 302
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="https://www.google.com.au/?gfe_rd=cr&ei=xxSkWOTfD7PM8gfToaLYDA">here</A>.
</BODY></HTML> The response headers are still hidden, but that's a problem for another ticket. |
Yes, so I should note that the |
This issue occurs both on the current stable HTTPie release, 0.9.9, and on the bleeding-edge development version
de38f86
installed usingpip3 install --upgrade https://github.com/jkbrzt/httpie/archive/master.tar.gz
.After installing
httpie-http2
withpip3 install httpie-http2
, every attempt to make an HTTP/2 request will fail, printing the error messagehttp: error: ProtocolError: Connection-specific header field present: b'connection'.
The full
--debug
output is:HTTP/1.1 requests are unaffected even when
httpie-http2
is installed, presumably because the plugin only does anything if you're actually trying to use HTTP/2, but all requests to HTTP/2 hosts become impossible.The text was updated successfully, but these errors were encountered: