mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 00:37:39 +08:00
完善websocket
This commit is contained in:
parent
33ff630e9b
commit
791d84d08e
@ -190,6 +190,9 @@ inline bool HttpSession::checkWebSocket(){
|
||||
headerOut["Upgrade"] = "websocket";
|
||||
headerOut["Connection"] = "Upgrade";
|
||||
headerOut["Sec-WebSocket-Accept"] = Sec_WebSocket_Accept;
|
||||
if(!_parser["Sec-WebSocket-Protocol"].empty()){
|
||||
headerOut["Sec-WebSocket-Protocol"] = _parser["Sec-WebSocket-Protocol"];
|
||||
}
|
||||
sendResponse("101 Switching Protocols",headerOut,"");
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user