From 92270b74ac269aa830e58aa031bdeb8c89fa0991 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 25 Oct 2017 09:26:50 -0700 Subject: [PATCH] ircd::http: Parse a connection header. --- include/ircd/http.h | 1 + ircd/http.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/ircd/http.h b/include/ircd/http.h index a0d7d6ebd..ae9b05d00 100644 --- a/include/ircd/http.h +++ b/include/ircd/http.h @@ -369,6 +369,7 @@ struct ircd::http::request::head string_view expect; string_view te; string_view authorization; + string_view connection; size_t content_length {0}; string_view headers; diff --git a/ircd/http.cc b/ircd/http.cc index e28c16686..8255deef3 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -381,6 +381,8 @@ ircd::http::request::head::head(parse::capstan &pc, this->content_length = parser.content_length(h.second); else if(iequals(h.first, "authorization"s)) this->authorization = h.second; + else if(iequals(h.first, "connection"s)) + this->connection = h.second; if(c) c(h);