forked from Links2004/arduinoWebSockets
mandatoryHttpHeaderCount fix
This commit is contained in:
1 parent
97443ae777
commit
7e5c64a573
3 files changed
+11
-5
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user