diff --git a/include/ircd/http.h b/include/ircd/http.h index 0d5c9a97f..5e8a448fb 100644 --- a/include/ircd/http.h +++ b/include/ircd/http.h @@ -280,6 +280,7 @@ struct ircd::http::response::head string_view accept_range; string_view transfer_encoding; string_view server; + string_view location; string_view headers; diff --git a/ircd/http.cc b/ircd/http.cc index 41843d5a0..62a741052 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -554,6 +554,9 @@ ircd::http::assign(response::head &head, else if(key == "server"_sv) head.server = val; + + else if(key == "location"_sv) + head.location = val; } ircd::http::response::chunk::chunk(parse::capstan &pc)