mirror of
https://github.com/matrix-construct/construct
synced 2024-12-23 22:13:55 +01:00
ircd::http: Recognize additional proxy related headers for now. #189
This commit is contained in:
parent
a104e44e3e
commit
2948bf7cd1
2 changed files with 10 additions and 2 deletions
|
@ -320,7 +320,9 @@ struct ircd::http::request::head
|
|||
string_view upgrade;
|
||||
string_view range;
|
||||
string_view if_range;
|
||||
string_view forwarded_for;
|
||||
string_view forwarded[1]; // last forwarded
|
||||
string_view forwarded_for[1]; // last x-forwarded-for
|
||||
string_view forwarded_host[1]; // last x-forwarded-host
|
||||
size_t content_length {0};
|
||||
|
||||
string_view uri; // full view of (path, query, fragmet)
|
||||
|
|
|
@ -394,8 +394,14 @@ ircd::http::assign(request::head &head,
|
|||
else if(key == "if-range"_sv)
|
||||
head.if_range = val;
|
||||
|
||||
else if(key == "forwarded"_sv)
|
||||
head.forwarded[0] = val;
|
||||
|
||||
else if(key == "x-forwarded-for"_sv)
|
||||
head.forwarded_for = val;
|
||||
head.forwarded_for[0] = val;
|
||||
|
||||
else if(key == "x-forwarded-host"_sv)
|
||||
head.forwarded_host[0] = val;
|
||||
}
|
||||
|
||||
ircd::http::response::response(window_buffer &out,
|
||||
|
|
Loading…
Reference in a new issue