mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Always send Content-Length header.
Because without it, HTTP/1.1 (with persistence connection) clients will keep waiting for more data.
This commit is contained in:
@@ -48,7 +48,6 @@ QByteArray ResponseGenerator::generate(Response response)
|
||||
response.headers.remove(HEADER_CONTENT_ENCODING);
|
||||
}
|
||||
|
||||
if (response.content.length() > 0)
|
||||
response.headers[HEADER_CONTENT_LENGTH] = QString::number(response.content.length());
|
||||
|
||||
QString ret(QLatin1String("HTTP/1.1 %1 %2\r\n%3\r\n"));
|
||||
|
||||
Reference in New Issue
Block a user