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

Increase WebSocket sec key length to 24 characters

This commit is contained in:
Sandeep Mistry 2017-05-02 13:18:16 -04:00
parent 4e476a651d
commit cfe046dcb3

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++)