1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-04-19 21:22:15 +03:00

Merge pull request #26 from sandeepmistry/websocket-sec-key-length

Increase WebSocket sec key length to 24 characters
This commit is contained in:
Arturo Guadalupi 2017-05-08 15:43:10 +02:00 committed by GitHub
commit 050821b224

View File

@ -35,8 +35,8 @@ int WebSocketClient::begin(const char* aPath)
if (status == 0)
{
uint8_t randomKey[13];
char base64RandomKey[21];
uint8_t randomKey[16];
char base64RandomKey[25];
// create a random key for the connection upgrade
for (int i = 0; i < (int)sizeof(randomKey); i++)