Browse Source

Avoid unessary QString allocation

adaptive-webui-19844
FranciscoPombal 4 years ago
parent
commit
f502f60f7c
  1. 2
      src/base/bittorrent/tracker.cpp

2
src/base/bittorrent/tracker.cpp

@ -238,7 +238,7 @@ Http::Response Tracker::processRequest(const Http::Request &request, const Http:
if (request.method != Http::HEADER_REQUEST_METHOD_GET) if (request.method != Http::HEADER_REQUEST_METHOD_GET)
throw MethodNotAllowedHTTPError(); throw MethodNotAllowedHTTPError();
if (request.path.toLower().startsWith(ANNOUNCE_REQUEST_PATH)) if (request.path.startsWith(ANNOUNCE_REQUEST_PATH, Qt::CaseInsensitive))
processAnnounceRequest(); processAnnounceRequest();
else else
throw NotFoundHTTPError(); throw NotFoundHTTPError();

Loading…
Cancel
Save