0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-29 15:28:20 +02:00

ircd::http: Parse a connection header.

This commit is contained in:
Jason Volk 2017-10-25 09:26:50 -07:00
parent deaea72f9a
commit 92270b74ac
2 changed files with 3 additions and 0 deletions

View file

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

View file

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