Fix Sec-WebSocket-Key to contain valid Base64. (#389)

The generated header only "looked like" Base64, but if the other side
actually tried to decode it as such, it could fail. This change fixes
that to always generate a valid Base64 value.

The Base64 code is copied from
https://gist.github.com/tomykaira/f0fd86b6c73063283afe550bc5d77594.
This commit is contained in:
Robin Sommer
2022-04-29 09:05:06 +02:00
committed by GitHub
parent 2f560ff4c0
commit edb6ded99f
3 changed files with 128 additions and 8 deletions

View File

@ -66,6 +66,7 @@ set( IXWEBSOCKET_SOURCES
)
set( IXWEBSOCKET_HEADERS
ixwebsocket/IXBase64.h
ixwebsocket/IXBench.h
ixwebsocket/IXCancellationRequest.h
ixwebsocket/IXConnectionState.h