mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Whoa. Fixed a super old bug in
WebSocketService::RespondWithInvalidRequest where the message type was not properly formed.
This commit is contained in:
parent
9a8f486658
commit
6e05c5f728
@ -452,10 +452,10 @@ void WebSocketServer::RespondWithInvalidRequest(connection_hdl connection, const
|
||||
json error = {
|
||||
{ message::name, name },
|
||||
{ message::id, id },
|
||||
{ message::options,{
|
||||
{ key::error, value::invalid }
|
||||
} }
|
||||
{ message::type, type::response },
|
||||
{ message::options,{{ key::error, value::invalid }} }
|
||||
};
|
||||
|
||||
wss->send(connection, error.dump().c_str(), websocketpp::frame::opcode::text);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user