Open peterbe opened 5 years ago
PS the immediate "solution" is to do it like this instead:
-c = HTTPConnection('www.peterbe.com',)
+c = HTTPConnection('www.peterbe.com', port=443)
then it works as expected. Clunky though. That's why I think this issue should stay open till it's less clunky.
The documentation says:
By default, all HTTP/2 connections are made over TLS.
@Asmeble How does that help when trying to use hyper
?
Also, how is that different from regular requests
?
Consider
Output becomes:
That's like doing
curl -v http://www.peterbe.com
which will also respond with:I think the problem is that
http://www.peterbecom
is HTTP/1.1 whereashttps://www.peterbe.com
is HTTP/2. ...if that matters.