diff --git a/include/ircd/http.h b/include/ircd/http.h index e175fa776..020461b4d 100644 --- a/include/ircd/http.h +++ b/include/ircd/http.h @@ -357,6 +357,7 @@ struct ircd::http::response::head { size_t content_length {0}; string_view transfer_encoding; + string_view server; string_view headers; diff --git a/ircd/http.cc b/ircd/http.cc index 0ea319176..72158f679 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -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); }}