protocol: Fix error formatting for wrong op codes

This commit is contained in:
Dominik Nakamura 2021-12-19 17:30:58 +09:00
parent a40e79e987
commit 9749502e88
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

View File

@ -296,7 +296,7 @@ void WebSocketServer::ProcessMessage(SessionPtr session, WebSocketServer::Proces
} return;
default:
ret.closeCode = WebSocketCloseCode::UnknownOpCode;
ret.closeReason = std::string("Unknown OpCode: %s") + std::to_string(opCode);
ret.closeReason = std::string("Unknown OpCode: ") + std::to_string(opCode);
return;
}
}