mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Prebuild HTTP headers as much as possible
This avoids some branching when building a HTTP response.
This commit is contained in:
parent
18b2511238
commit
957d697aee
2 changed files with 21 additions and 28 deletions
|
@ -151,12 +151,10 @@ private:
|
|||
|
||||
// security related
|
||||
QStringList m_domainList;
|
||||
bool m_isClickjackingProtectionEnabled;
|
||||
bool m_isCSRFProtectionEnabled;
|
||||
bool m_isSecureCookieEnabled;
|
||||
bool m_isHostHeaderValidationEnabled;
|
||||
bool m_isHttpsEnabled;
|
||||
QString m_contentSecurityPolicy;
|
||||
|
||||
// Custom HTTP headers
|
||||
struct CustomHTTPHeader
|
||||
|
@ -164,6 +162,6 @@ private:
|
|||
QString name;
|
||||
QString value;
|
||||
};
|
||||
bool m_useCustomHTTPHeaders;
|
||||
QVector<CustomHTTPHeader> m_customHTTPHeaders;
|
||||
|
||||
QVector<CustomHTTPHeader> m_prebuiltHeaders;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue