Merge pull request #881 from dnaka91/fix-wrong-opcode-formatting

protocol: Fix error formatting for wrong op codes
This commit is contained in:
tt2468 2021-12-19 17:11:30 +07:00 committed by GitHub
commit 0c7fda28a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}
}