1 We have no wsproto packaged yet.
3 --- uvicorn-0.31.1/requirements.txt.orig
4 +++ uvicorn-0.31.1/requirements.txt
6 h11 @ git+https://github.com/python-hyper/h11.git@master
13 --- uvicorn-0.31.1/tests/protocols/test_websocket.py.orig
14 +++ uvicorn-0.31.1/tests/protocols/test_websocket.py
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"
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):