I\'m writing a c++ websocket server, dev tools on chrome says sec-websocket-accept header value is incorrect. I\'ve tested for days and it all seems fine. The client closes
Chrome says that 'Sec-WebSocket-Accept' is incorrect. Trying to compute it manually, I have to agree with Chrome.
My test:
key
.The bold values should be equal. Feel free to correct me if I'm wrong somewhere.
Possible problems:
Is sha_str
null-terminated ? i.e. strlen((char*)sha_str) == 20
?
signed/unsigned char mixup ?