mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::http: Parse response location header.
This commit is contained in:
parent
bf1e4e8dfe
commit
6da0ae9c22
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue