commit f82c7a5
default
·
2024-12-19 15:14:13 +0000 UTC
parent 70ee328
Propagate FastCGI variable REMOTE_ADDR.
1 files changed,
+1,
-1
+1,
-1
1@@ -190,7 +190,7 @@ xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *fcgi_id)
2 q_vars = xs_url_vars(xs_list_get(pnv, 1));
3 }
4 else
5- if (xs_match(k, "CONTENT_TYPE|CONTENT_LENGTH|HTTP_*")) {
6+ if (xs_match(k, "CONTENT_TYPE|CONTENT_LENGTH|REMOTE_ADDR|HTTP_*")) {
7 if (xs_startswith(k, "HTTP_"))
8 k = xs_crop_i(k, 5, 0);
9