mirror of
https://github.com/matrix-construct/construct
synced 2024-09-30 12:48:54 +02: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 te;
|
||||
string_view authorization;
|
||||
string_view connection;
|
||||
size_t content_length {0};
|
||||
|
||||
string_view headers;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue