mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::http: Add X-Forwarded-For support to request header.
This commit is contained in:
parent
68b47956ef
commit
c2ba27ace7
2 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,7 @@ struct ircd::http::request::head
|
|||
string_view upgrade;
|
||||
string_view range;
|
||||
string_view if_range;
|
||||
string_view forwarded_for;
|
||||
size_t content_length {0};
|
||||
|
||||
string_view uri; // full view of (path, query, fragmet)
|
||||
|
|
|
@ -401,6 +401,9 @@ ircd::http::assign(request::head &head,
|
|||
|
||||
else if(key == "if-range"_sv)
|
||||
head.if_range = val;
|
||||
|
||||
else if(key == "x-forwarded-for"_sv)
|
||||
head.forwarded_for = val;
|
||||
}
|
||||
|
||||
ircd::http::response::response(window_buffer &out,
|
||||
|
|
Loading…
Reference in a new issue