Browse Source

Merge pull request #10273 from Chocobo1/fix

Fix wrong arg placeholder
adaptive-webui-19844
Mike Tzou 6 years ago committed by GitHub
parent
commit
12aea82031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/http/connection.cpp

2
src/base/http/connection.cpp

@ -66,7 +66,7 @@ void Connection::read() @@ -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");

Loading…
Cancel
Save