mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Suppress misleading warning message
QString::split() was giving a non-empty QStringList, and that caused Session::setBannedIPs() to emit misleading warning message.
This commit is contained in:
@@ -473,8 +473,8 @@ Http::Response WebApplication::processRequest(const Http::Request &request, cons
|
||||
header(QLatin1String(Http::HEADER_CONTENT_SECURITY_POLICY), m_contentSecurityPolicy);
|
||||
|
||||
if (m_useCustomHTTPHeaders) {
|
||||
for (const CustomHTTPHeader &i : asConst(m_customHTTPHeaders))
|
||||
header(i.name, i.value);
|
||||
for (const CustomHTTPHeader &customHeader : asConst(m_customHTTPHeaders))
|
||||
header(customHeader.name, customHeader.value);
|
||||
}
|
||||
|
||||
return response();
|
||||
|
||||
Reference in New Issue
Block a user