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

Commit

Permalink
Merge pull request #370 from johejo/window_manager
Browse files Browse the repository at this point in the history
Add a fix to make it possible to add window_manager to HTTP20Adapter.
  • Loading branch information
Lukasa authored Dec 17, 2017
2 parents 4b522f5 + d5a9a43 commit 18b629b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hyper/contrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ class HTTP20Adapter(HTTPAdapter):
HTTP/2. This implements some degree of connection pooling to maximise the
HTTP/2 gain.
"""
def __init__(self, *args, **kwargs):
def __init__(self, window_manager=None, *args, **kwargs):
#: A mapping between HTTP netlocs and ``HTTP20Connection`` objects.
self.connections = {}
self.window_manager = window_manager

def get_connection(self, host, port, scheme, cert=None, verify=True,
proxy=None, timeout=None):
Expand Down Expand Up @@ -75,6 +76,7 @@ def get_connection(self, host, port, scheme, cert=None, verify=True,
host,
port,
secure=secure,
window_manager=self.window_manager,
ssl_context=ssl_context,
proxy_host=proxy_netloc,
proxy_headers=proxy_headers,
Expand Down

0 comments on commit 18b629b

Please sign in to comment.