mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::http: Parse the server string into the response head.
This commit is contained in:
parent
ddc70b014c
commit
7bbe116b88
2 changed files with 4 additions and 0 deletions
|
@ -357,6 +357,7 @@ struct ircd::http::response::head
|
|||
{
|
||||
size_t content_length {0};
|
||||
string_view transfer_encoding;
|
||||
string_view server;
|
||||
|
||||
string_view headers;
|
||||
|
||||
|
|
|
@ -460,6 +460,9 @@ ircd::http::response::head::head(parse::capstan &pc,
|
|||
else if(iequals(h.first, "transfer-encoding"s))
|
||||
this->transfer_encoding = h.second;
|
||||
|
||||
else if(iequals(h.first, "server"s))
|
||||
this->server = h.second;
|
||||
|
||||
if(c)
|
||||
c(h);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue