mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Remove 100kb limit for torrent file size in Web UI
This commit is contained in:
parent
96f619b486
commit
55be2aa9a0
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ void HttpConnection::read() {
|
||||||
const int expected_length = m_parser.header().contentLength();
|
const int expected_length = m_parser.header().contentLength();
|
||||||
QByteArray message = input.mid(header_end + 4, expected_length);
|
QByteArray message = input.mid(header_end + 4, expected_length);
|
||||||
|
|
||||||
if (expected_length > 100000) {
|
if (expected_length > 10000000) {
|
||||||
qWarning() << "Bad request: message too long";
|
qWarning() << "Bad request: message too long";
|
||||||
m_generator.setStatusLine(400, "Bad Request");
|
m_generator.setStatusLine(400, "Bad Request");
|
||||||
input.clear();
|
input.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue