Skip to content

Commit

Permalink
Set up ALPN to better support HTTP/2
Browse files Browse the repository at this point in the history
( #202 )
  • Loading branch information
URenko committed Oct 12, 2024
1 parent 5478a6a commit c69c2f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions accesser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ async def main():
importca.import_ca()

context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.set_alpn_protocols(['h2', 'http/1.1'])
cert_store = set()
cert_lock = asyncio.Lock()

Expand Down

0 comments on commit c69c2f3

Please sign in to comment.