From 79d7ba82054917f865b232268d3fcf11fd7140c2 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 9 Feb 2019 15:39:23 +0800 Subject: [PATCH] Fix wrong arg placeholder --- src/base/http/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/http/connection.cpp b/src/base/http/connection.cpp index 92c4eca72..27cb53c5c 100644 --- a/src/base/http/connection.cpp +++ b/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");