• Stefy Lanza (nextime / spora )'s avatar
    Fix WebSocket handshake for RDP by removing Sec-WebSocket-Protocol header · d30f31c1
    Stefy Lanza (nextime / spora ) authored
    The client was failing WebSocket connection because the server was sending
    Sec-WebSocket-Protocol: binary header in the handshake response, but the
    client did not request any protocol. According to WebSocket RFC 6455,
    servers should not send protocol headers if not requested by the client.
    
    Changed the handshake response for RDP to not include the protocol header,
    matching the terminal WebSocket behavior.
    d30f31c1
web.c 119 KB