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 14
14
from pprint import pformat
15
15
from textwrap import dedent
16
16
17
- from hyper import HTTP20Connection
17
+ from hyper import HTTPConnection
18
18
from hyper import __version__
19
19
from hyper .compat import is_py2 , urlencode , urlsplit , write_to_stdout
20
20
@@ -214,7 +214,7 @@ def get_content_type_and_charset(response):
214
214
215
215
216
216
def request (args ):
217
- conn = HTTP20Connection (args .url .host , args .url .port )
217
+ conn = HTTPConnection (args .url .host , args .url .port )
218
218
conn .request (args .method , args .url .path , args .body , args .headers )
219
219
response = conn .get_response ()
220
220
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):
82
82
'specified host with url scheme https:// and path' ,
83
83
])
84
84
def test_cli_normal (monkeypatch , argv ):
85
- monkeypatch .setattr ('hyper.cli.HTTP20Connection ' , DummyConnection )
85
+ monkeypatch .setattr ('hyper.cli.HTTPConnection ' , DummyConnection )
86
86
main (argv )
87
87
assert True
88
88
You can’t perform that action at this time.
0 commit comments