mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Define and use a proper HTTP header structure
This commit is contained in:
@@ -35,9 +35,9 @@ void ResponseBuilder::status(const uint code, const QString &text)
|
||||
m_response.status = {code, text};
|
||||
}
|
||||
|
||||
void ResponseBuilder::header(const QString &name, const QString &value)
|
||||
void ResponseBuilder::header(const Header &header)
|
||||
{
|
||||
m_response.headers[name] = value;
|
||||
m_response.headers[header.name] = header.value;
|
||||
}
|
||||
|
||||
void ResponseBuilder::print(const QString &text, const QString &type)
|
||||
|
||||
Reference in New Issue
Block a user