mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Avoid unessary QString allocation
This commit is contained in:
parent
776c1f1546
commit
f502f60f7c
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ Http::Response Tracker::processRequest(const Http::Request &request, const Http:
|
|||
if (request.method != Http::HEADER_REQUEST_METHOD_GET)
|
||||
throw MethodNotAllowedHTTPError();
|
||||
|
||||
if (request.path.toLower().startsWith(ANNOUNCE_REQUEST_PATH))
|
||||
if (request.path.startsWith(ANNOUNCE_REQUEST_PATH, Qt::CaseInsensitive))
|
||||
processAnnounceRequest();
|
||||
else
|
||||
throw NotFoundHTTPError();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue