0
0
Fork 0
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:
Jason Volk 2018-01-24 09:15:16 -08:00
parent ddc70b014c
commit 7bbe116b88
2 changed files with 4 additions and 0 deletions

View file

@ -357,6 +357,7 @@ struct ircd::http::response::head
{
size_t content_length {0};
string_view transfer_encoding;
string_view server;
string_view headers;

View file

@ -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);
}}