Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hyper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pprint import pformat
from textwrap import dedent

from hyper import HTTP20Connection
from hyper import HTTPConnection
from hyper import __version__
from hyper.compat import is_py2, urlencode, urlsplit, write_to_stdout

Expand Down Expand Up @@ -214,7 +214,7 @@ def get_content_type_and_charset(response):


def request(args):
conn = HTTP20Connection(args.url.host, args.url.port)
conn = HTTPConnection(args.url.host, args.url.port)
conn.request(args.method, args.url.path, args.body, args.headers)
response = conn.get_response()
log.debug('Response Headers:\n%s', pformat(response.headers))
Expand Down
2 changes: 1 addition & 1 deletion test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _get_value(obj, key):
'specified host with url scheme https:// and path',
])
def test_cli_normal(monkeypatch, argv):
monkeypatch.setattr('hyper.cli.HTTP20Connection', DummyConnection)
monkeypatch.setattr('hyper.cli.HTTPConnection', DummyConnection)
main(argv)
assert True

Expand Down