mandatoryHttpHeaderCount fix

This commit is contained in:
joe
2016-06-09 19:48:38 +01:00
parent 97443ae777
commit 7e5c64a573
3 changed files with 11 additions and 5 deletions

View File

@ -75,7 +75,8 @@ void setup() {
//connecting clients must supply a valid session cookie at websocket upgrade handshake negotiation time
const char * headerkeys[] = { "Cookie" };
webSocket.onValidateHttpHeader(validateHttpHeader, headerkeys);
size_t headerKeyCount = sizeof(headerkeys) / sizeof(char*);
webSocket.onValidateHttpHeader(validateHttpHeader, headerkeys, headerKeyCount);
webSocket.begin();
}