0
0
Fork 0
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:
Jason Volk 2020-04-22 23:37:53 -07:00
parent 68b47956ef
commit c2ba27ace7
2 changed files with 4 additions and 0 deletions

View file

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

View file

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