httpie / httpie-http2

(DEPRECATED) Experimental HTTP/2 plugin for HTTPie
https://httpie.org
Other
68 stars 4 forks source link

Does not follow HTTP/2 3XX redirects #13

Closed ghost closed 3 years ago

ghost commented 3 years ago

I have installed both httpie and httpie-http2 However, when I tried to make an http2 request with redirects, httpie does not follow the HTTP/2 301 redirect: Input: https --verbose https://google.com --follow Output:

GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: google.com
User-Agent: HTTPie/2.4.0

HTTP/2 301

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>