mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-12 05:44:14 +03:00
commit
12aea82031
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ void Connection::read()
|
||||||
case RequestParser::ParseStatus::Incomplete: {
|
case RequestParser::ParseStatus::Incomplete: {
|
||||||
const long bufferLimit = RequestParser::MAX_CONTENT_SIZE * 1.1; // some margin for headers
|
const long bufferLimit = RequestParser::MAX_CONTENT_SIZE * 1.1; // some margin for headers
|
||||||
if (m_receivedData.size() > bufferLimit) {
|
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);
|
.arg(bufferLimit).arg(m_socket->peerAddress().toString()), Log::WARNING);
|
||||||
|
|
||||||
Response resp(413, "Payload Too Large");
|
Response resp(413, "Payload Too Large");
|
||||||
|
|
Loading…
Reference in a new issue