mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
ircd::http: Parse a connection header.
This commit is contained in:
parent
deaea72f9a
commit
92270b74ac
2 changed files with 3 additions and 0 deletions
|
@ -369,6 +369,7 @@ struct ircd::http::request::head
|
||||||
string_view expect;
|
string_view expect;
|
||||||
string_view te;
|
string_view te;
|
||||||
string_view authorization;
|
string_view authorization;
|
||||||
|
string_view connection;
|
||||||
size_t content_length {0};
|
size_t content_length {0};
|
||||||
|
|
||||||
string_view headers;
|
string_view headers;
|
||||||
|
|
|
@ -381,6 +381,8 @@ ircd::http::request::head::head(parse::capstan &pc,
|
||||||
this->content_length = parser.content_length(h.second);
|
this->content_length = parser.content_length(h.second);
|
||||||
else if(iequals(h.first, "authorization"s))
|
else if(iequals(h.first, "authorization"s))
|
||||||
this->authorization = h.second;
|
this->authorization = h.second;
|
||||||
|
else if(iequals(h.first, "connection"s))
|
||||||
|
this->connection = h.second;
|
||||||
|
|
||||||
if(c)
|
if(c)
|
||||||
c(h);
|
c(h);
|
||||||
|
|
Loading…
Reference in a new issue