python-hyper / hyper

HTTP/2 for Python.

Home Page:http://hyper.rtfd.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opening connection with HTTPS Schema fail

yeralin opened this issue · comments

Whenever I try to HTTP20Connection('https://example.com'), it throws me an error:

AttributeError: 'NoneType' object has no attribute 'strip'

Can you please provide the full traceback?

Oh, nevermind.

The documentation for HTTP20Connection states:

host: The host to connect to. This may be an IP address or a hostname, and optionally may include a port: for example, 'http2bin.org', 'http2bin.org:443' or '127.0.0.1'.

That means you should use HTTP20Connection('example.com', port=443).