Skip to content

[bug] Sec-WebSocket-Key header accepting longer values than RFC6455 accepts. #617

Closed

Description

@andrewhodel

I sent a 20 byte value as Sec-WebSocket-Key and everything works fine, but the RFC states that the value must be exactly 16 bytes when decoded from base64!

That's a problem because when I try to use the client I am writing and testing against this websocket server, it fails on another websocket server.

I'm letting you know so we can all follow the RFC.

Describe the bug

A clear and concise description of what the bug is.

…

Versions

Go version: go version
package version: run git rev-parse HEAD inside the repo

…

Steps to Reproduce

How can the bug be triggered?

…

Expected behavior

What output or behaviour were you expecting instead?

…

Code Snippets

A minimum viable code snippet can be useful! (use backticks to format it).

…

Activity

  1. ghost removed
    bugSomething isn't working
    on Dec 18, 2021
  2. ghost added on Dec 18, 2021
  3. ghost closed this as completedon Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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