Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 6f39034

Browse files
committed
Merge pull request #106 from jdecuyper/docs-replace-twitter
Use http2bin.org instead of twitter.com
2 parents 759cad5 + 2f61222 commit 6f39034

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hyper/http20/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class HTTP20Connection(object):
3737
3838
:param host: The host to connect to. This may be an IP address or a
3939
hostname, and optionally may include a port: for example,
40-
``'twitter.com'``, ``'twitter.com:443'`` or ``'127.0.0.1'``.
40+
``'http2bin.org'``, ``'http2bin.org:443'`` or ``'127.0.0.1'``.
4141
:param port: (optional) The port to connect to. If not provided and one also
4242
isn't provided in the ``host`` parameter, defaults to 443.
4343
:param window_manager: (optional) The class to use to manage flow control

test/test_hyper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,8 +1984,8 @@ def test_gettrailer_defaults_correctly(self):
19841984
class TestHTTP20Adapter(object):
19851985
def test_adapter_reuses_connections(self):
19861986
a = HTTP20Adapter()
1987-
conn1 = a.get_connection('twitter.com')
1988-
conn2 = a.get_connection('twitter.com')
1987+
conn1 = a.get_connection('http2bin.org')
1988+
conn2 = a.get_connection('http2bin.org')
19891989

19901990
assert conn1 is conn2
19911991

0 commit comments

Comments
 (0)