We have no wsproto packaged yet. --- uvicorn-0.31.1/requirements.txt.orig +++ uvicorn-0.31.1/requirements.txt @@ -5,7 +5,6 @@ h11 @ git+https://github.com/python-hyper/h11.git@master # Explicit optionals -wsproto==1.2.0 websockets==13.1 # Packaging --- uvicorn-0.31.1/tests/protocols/test_websocket.py.orig +++ uvicorn-0.31.1/tests/protocols/test_websocket.py @@ -905,12 +905,8 @@ response = await wsresponse(url) assert response.status_code == 403 assert response.content == b"hardbody" - if ws_protocol_cls == _WSProtocol: - # wsproto automatically makes the message chunked - assert response.headers["transfer-encoding"] == "chunked" - else: - # websockets automatically adds a content-length - assert response.headers["content-length"] == "8" + # websockets automatically adds a content-length + assert response.headers["content-length"] == "8" config = Config(app=app, ws=ws_protocol_cls, http=http_protocol_cls, lifespan="off", port=unused_tcp_port) async with run_server(config):