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

Commit 18b629b

Browse files
authored
Merge pull request #370 from johejo/window_manager
Add a fix to make it possible to add window_manager to HTTP20Adapter.
2 parents 4b522f5 + d5a9a43 commit 18b629b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hyper/contrib.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ class HTTP20Adapter(HTTPAdapter):
2828
HTTP/2. This implements some degree of connection pooling to maximise the
2929
HTTP/2 gain.
3030
"""
31-
def __init__(self, *args, **kwargs):
31+
def __init__(self, window_manager=None, *args, **kwargs):
3232
#: A mapping between HTTP netlocs and ``HTTP20Connection`` objects.
3333
self.connections = {}
34+
self.window_manager = window_manager
3435

3536
def get_connection(self, host, port, scheme, cert=None, verify=True,
3637
proxy=None, timeout=None):
@@ -75,6 +76,7 @@ def get_connection(self, host, port, scheme, cert=None, verify=True,
7576
host,
7677
port,
7778
secure=secure,
79+
window_manager=self.window_manager,
7880
ssl_context=ssl_context,
7981
proxy_host=proxy_netloc,
8082
proxy_headers=proxy_headers,

0 commit comments

Comments
 (0)