remmina: update to 1.4.37
[oi-userland.git] / components / python / uvicorn / patches / 03-no-wsproto.patch
blobb8fb3024f33e051f1f3bb507ccca94e44574426a
1 We have no wsproto packaged yet.
3 --- uvicorn-0.31.1/requirements.txt.orig
4 +++ uvicorn-0.31.1/requirements.txt
5 @@ -5,7 +5,6 @@
6 h11 @ git+https://github.com/python-hyper/h11.git@master
8 # Explicit optionals
9 -wsproto==1.2.0
10 websockets==13.1
12 # Packaging
13 --- uvicorn-0.31.1/tests/protocols/test_websocket.py.orig
14 +++ uvicorn-0.31.1/tests/protocols/test_websocket.py
15 @@ -905,12 +905,8 @@
16 response = await wsresponse(url)
17 assert response.status_code == 403
18 assert response.content == b"hardbody"
19 - if ws_protocol_cls == _WSProtocol:
20 - # wsproto automatically makes the message chunked
21 - assert response.headers["transfer-encoding"] == "chunked"
22 - else:
23 - # websockets automatically adds a content-length
24 - assert response.headers["content-length"] == "8"
25 + # websockets automatically adds a content-length
26 + assert response.headers["content-length"] == "8"
28 config = Config(app=app, ws=ws_protocol_cls, http=http_protocol_cls, lifespan="off", port=unused_tcp_port)
29 async with run_server(config):