This repository was archived by the owner on Jan 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414from pprint import pformat
1515from textwrap import dedent
1616
17- from hyper import HTTP20Connection
17+ from hyper import HTTPConnection
1818from hyper import __version__
1919from hyper .compat import is_py2 , urlencode , urlsplit , write_to_stdout
2020
@@ -214,7 +214,7 @@ def get_content_type_and_charset(response):
214214
215215
216216def request (args ):
217- conn = HTTP20Connection (args .url .host , args .url .port )
217+ conn = HTTPConnection (args .url .host , args .url .port )
218218 conn .request (args .method , args .url .path , args .body , args .headers )
219219 response = conn .get_response ()
220220 log .debug ('Response Headers:\n %s' , pformat (response .headers ))
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def _get_value(obj, key):
8282 'specified host with url scheme https:// and path' ,
8383])
8484def test_cli_normal (monkeypatch , argv ):
85- monkeypatch .setattr ('hyper.cli.HTTP20Connection ' , DummyConnection )
85+ monkeypatch .setattr ('hyper.cli.HTTPConnection ' , DummyConnection )
8686 main (argv )
8787 assert True
8888
You can’t perform that action at this time.
0 commit comments