mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Merge pull request #13563 from adem4ik/patch-2
Fix typo in connection.cpp
This commit is contained in:
commit
66f0e6a8f2
@ -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: %1, IP: %2")
|
Logger::instance()->addMessage(tr("Http request size exceeds limitation, 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 New Issue
Block a user