good morning!!!!

Skip to content
Snippets Groups Projects
Forked from github / nhooyr / websocket
Source project has a limited visibility.
  • Egor Gorbunov's avatar
    e4c3b0f8
    Do not lower header tokens in headerTokens() (#273) · e4c3b0f8
    Egor Gorbunov authored
    HTTP header values, as opposed to header keys,
    are case sensitive, but implementation of headerTokens()
    before this patch would return lowered values always.
    
    This old behavior could lead to chromium (v87) WebSocket
    rejecting connnection because negotiated subprotocol,
    returned in Sec-WebSocket-Protocol header (lowered
    be headerToken() function) would not match one sent
    by client, in case client specified value with capital
    letters.
    Do not lower header tokens in headerTokens() (#273)
    Egor Gorbunov authored
    HTTP header values, as opposed to header keys,
    are case sensitive, but implementation of headerTokens()
    before this patch would return lowered values always.
    
    This old behavior could lead to chromium (v87) WebSocket
    rejecting connnection because negotiated subprotocol,
    returned in Sec-WebSocket-Protocol header (lowered
    be headerToken() function) would not match one sent
    by client, in case client specified value with capital
    letters.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.