mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 09:13:08 -07:00
Define and use a proper HTTP header structure
This commit is contained in:
parent
957d697aee
commit
74a2168bc1
5 changed files with 16 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue