From 7bbe116b887c6704dae76fb23c22549554752809 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 24 Jan 2018 09:15:16 -0800 Subject: [PATCH] ircd::http: Parse the server string into the response head. --- include/ircd/http.h | 1 + ircd/http.cc | 3 +++ 2 files changed, 4 insertions(+) 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); }}