Skip to content

WebSocket requests from Firefox fail with a 400 error #2131

Description

@miguelgrinberg

Firefox issues their WebSocket requests with the following connection header:

Connection: keep-alive, Upgrade

While Chrome and other browsers do:

Connection: Upgrade

The WebSocket routing logic needs to be made more robust to accept the general format of the Connection header. I will work on this fix and submit a PR in the next few days.

Environment:

  • Python version: Any
  • Werkzeug version: 2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions