mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-26 06:25:27 +00:00
Avoid modifing request headers
This commit is contained in:
parent
23616d5dd0
commit
55e038b165
@ -387,7 +387,7 @@ bool AbstractWebApplication::isCrossSiteRequest(const Http::Request &request) co
|
|||||||
&& (left.host() == right.host()));
|
&& (left.host() == right.host()));
|
||||||
};
|
};
|
||||||
|
|
||||||
const QString targetOrigin = request.headers.value(Http::HEADER_X_FORWARDED_HOST, request.headers[Http::HEADER_HOST]);
|
const QString targetOrigin = request.headers.value(Http::HEADER_X_FORWARDED_HOST, request.headers.value(Http::HEADER_HOST));
|
||||||
const QString originValue = request.headers.value(Http::HEADER_ORIGIN);
|
const QString originValue = request.headers.value(Http::HEADER_ORIGIN);
|
||||||
const QString refererValue = request.headers.value(Http::HEADER_REFERER);
|
const QString refererValue = request.headers.value(Http::HEADER_REFERER);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user