0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::http: Parse response location header.

This commit is contained in:
Jason Volk 2020-03-11 16:32:55 -07:00
parent bf1e4e8dfe
commit 6da0ae9c22
2 changed files with 4 additions and 0 deletions

View file

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

View file

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