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

Add a fix to make it possible to add window_manager to HTTP20Adapter. #370

Merged
merged 1 commit into from
Dec 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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