ESP8266MQTTClient icon indicating copy to clipboard operation
ESP8266MQTTClient copied to clipboard

ws communication headers are compared case sensitive

Open amandel opened this issue 4 years ago • 0 comments

Http header names are not case sensitive, bool MQTTWSTraits::connect(WiFiClient* clientIn, const char* host, int port, const char *path) does a case sensitive coparison of the headers (temp.startsWith("upgrade: websocket"). If a client sends the header in different casing as expected, the websocket connection will fail.

amandel avatar May 22 '20 18:05 amandel