Commit 911ffb24 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

python: Set NPN in HTTP2Server.__init__

parent add07c43
......@@ -948,6 +948,11 @@ class HTTP2Server:
return _HTTP2Session(RequestHandlerClass)
self.loop = asyncio.get_event_loop()
if ssl:
ssl.set_npn_protocols([cnghttp2.NGHTTP2_PROTO_VERSION_ID\
.decode('utf-8')])
coro = self.loop.create_server(session_factory,
host=address[0], port=address[1],
ssl=ssl)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment