Skip to content

WebSocket connection scope's subprotocols not properly constructed #39

@villekr

Description

@villekr

https://asgi.readthedocs.io/en/latest/specs/www.html#websocket-connection-scope

"subprotocols" key should be built from Sec-WebSocket-Protocol header value. Currently it's always empty.

        scope = {
            "type": "websocket",
            "headers": flatten_headers(headers),
            "path": path,
            "query_string": query_string_bytes,
            "root_path": "",
            "scheme": "http",
            "subprotocols": [],
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions