Permalink
Browse files

Merge pull request #10273 from Chocobo1/fix

Fix wrong arg placeholder
  • Loading branch information...
Chocobo1 committed Feb 10, 2019
2 parents 0413a05 + 79d7ba8 commit 12aea82031275a10df4b01f92b3010460dadff49
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/base/http/connection.cpp
@@ -66,7 +66,7 @@ void Connection::read()
case RequestParser::ParseStatus::Incomplete: {
const long bufferLimit = RequestParser::MAX_CONTENT_SIZE * 1.1; // some margin for headers
if (m_receivedData.size() > bufferLimit) {
Logger::instance()->addMessage(tr("Http request size exceeds limiation, closing socket. Limit: %ld, IP: %s")
Logger::instance()->addMessage(tr("Http request size exceeds limiation, closing socket. Limit: %1, IP: %2")
.arg(bufferLimit).arg(m_socket->peerAddress().toString()), Log::WARNING);

Response resp(413, "Payload Too Large");

0 comments on commit 12aea82

Please sign in to comment.