mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
HTTP headers may be case-sensitive
For the IETF revision 00 send 'Upgrade: WebSocket' header instead of 'Upgrade: websocket' as described in the IETF standard. Some servers (for example, phpdaemon) are case-sensitive. Signed-off-by: Pavel Borzenkov <pavel.borzenkov@auriga.com>
This commit is contained in:
parent
26111bc4c6
commit
2af39964dc
1 changed files with 1 additions and 1 deletions
|
@ -1180,7 +1180,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
libwebsockets_00_spaceout(key_1, spaces_1, seed);
|
||||
libwebsockets_00_spaceout(key_2, spaces_2, seed >> 16);
|
||||
|
||||
p += sprintf(p, "Upgrade: websocket\x0d\x0a"
|
||||
p += sprintf(p, "Upgrade: WebSocket\x0d\x0a"
|
||||
"Connection: Upgrade\x0d\x0aHost: %s\x0d\x0a",
|
||||
wsi->c_host);
|
||||
if (wsi->c_origin)
|
||||
|
|
Loading…
Add table
Reference in a new issue