Skip to content

Commit

Permalink
Added compatibility with IE 11
Browse files Browse the repository at this point in the history
  • Loading branch information
homewsn committed Apr 8, 2016
1 parent 1677511 commit 5f7d010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static int http_header_parse(char *buf, char *key)
}

if (strstr(headers.connection, "Upgrade") != NULL &&
strcmp(headers.upgrade, "websocket") == 0 &&
(strcmp(headers.upgrade, "websocket") == 0 || strcmp(headers.upgrade, "Websocket") == 0) &&
strcmp(headers.version, "13") == 0 &&
strcmp(headers.protocol, "mqttv3.1") == 0 &&
strlen(headers.key) != 0)
Expand Down

0 comments on commit 5f7d010

Please sign in to comment.