Merge pull request #10 from tonylin0826/master

Fix missing "Upgrade" header error
This commit is contained in:
Benjamin Sergeant 2019-01-15 09:22:11 -08:00 committed by GitHub
commit da64d349c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -466,6 +466,8 @@ namespace ix
std::stringstream ss;
ss << "HTTP/1.1 101\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 ?
std::string header = headers["sec-websocket-extensions"];