diff options
Diffstat (limited to 'libpathod/protocols/http2.py')
-rw-r--r-- | libpathod/protocols/http2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/protocols/http2.py b/libpathod/protocols/http2.py index f57f56f8..44a51410 100644 --- a/libpathod/protocols/http2.py +++ b/libpathod/protocols/http2.py @@ -5,7 +5,7 @@ class HTTP2Protocol: def __init__(self, pathod_handler): self.pathod_handler = pathod_handler - self.wire_protocol = http2.HTTP2Protocol( + self.wire_protocol = http2.connections.HTTP2Protocol( self.pathod_handler, is_server=True, dump_frames=self.pathod_handler.http2_framedump ) @@ -14,7 +14,7 @@ class HTTP2Protocol: def read_request(self, lg=None): self.wire_protocol.perform_server_connection_preface() - return self.wire_protocol.read_request() + return self.wire_protocol.read_request(self.pathod_handler.rfile) def assemble(self, message): return self.wire_protocol.assemble(message) |