diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
commit | d99093fb4bb5652015c06274d64083daa2439e4f (patch) | |
tree | cf61513204d97974179580065e85df5c8009087c /dev-python/uvicorn/files/uvicorn-0.13.4-fix-wsproto-1.0.patch | |
parent | 463397cf1e064185110fe57c568d73f99a06f5d1 (diff) |
gentoo resync : 03.03.2021
Diffstat (limited to 'dev-python/uvicorn/files/uvicorn-0.13.4-fix-wsproto-1.0.patch')
-rw-r--r-- | dev-python/uvicorn/files/uvicorn-0.13.4-fix-wsproto-1.0.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-python/uvicorn/files/uvicorn-0.13.4-fix-wsproto-1.0.patch b/dev-python/uvicorn/files/uvicorn-0.13.4-fix-wsproto-1.0.patch new file mode 100644 index 000000000000..da3038d6db40 --- /dev/null +++ b/dev-python/uvicorn/files/uvicorn-0.13.4-fix-wsproto-1.0.patch @@ -0,0 +1,31 @@ +https://github.com/encode/uvicorn/pull/892 + +diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py +index f35a965d..25110fc6 100644 +--- a/tests/protocols/test_http.py ++++ b/tests/protocols/test_http.py +@@ -67,6 +67,7 @@ + b"Host: example.org", + b"Connection: upgrade", + b"Upgrade: websocket", ++ b"Sec-WebSocket-Version: 11", + b"", + b"", + ] +diff --git a/tests/protocols/test_websocket.py b/tests/protocols/test_websocket.py +index 24bc285f..7c3fcc08 100644 +--- a/tests/protocols/test_websocket.py ++++ b/tests/protocols/test_websocket.py +@@ -51,7 +51,11 @@ def app(scope): + async with httpx.AsyncClient() as client: + response = await client.get( + "http://127.0.0.1:8000", +- headers={"upgrade": "websocket", "connection": "upgrade"}, ++ headers={ ++ "upgrade": "websocket", ++ "connection": "upgrade", ++ "sec-webSocket-version": "11", ++ }, + timeout=5, + ) + if response.status_code == 426: |