Fix missing upgrade header error
This commit is contained in:
parent
a0f15bfb56
commit
2434605c06
@ -466,6 +466,8 @@ namespace ix
|
|||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "HTTP/1.1 101\r\n";
|
ss << "HTTP/1.1 101\r\n";
|
||||||
ss << "Sec-WebSocket-Accept: " << std::string(output) << "\r\n";
|
ss << "Sec-WebSocket-Accept: " << std::string(output) << "\r\n";
|
||||||
|
ss << "Upgrade: websocket\r\n";
|
||||||
|
ss << "Connection: websocket\r\n";
|
||||||
|
|
||||||
// Parse the client headers. Does it support deflate ?
|
// Parse the client headers. Does it support deflate ?
|
||||||
std::string header = headers["sec-websocket-extensions"];
|
std::string header = headers["sec-websocket-extensions"];
|
||||||
|
Loading…
Reference in New Issue
Block a user