summaryrefslogtreecommitdiff
path: root/xs_fcgi.h
diff options
context:
space:
mode:
authorGravatar default2024-11-07 20:47:37 +0100
committerGravatar default2024-11-07 20:47:37 +0100
commita6bf1ee0d0e238cb13d916c019bc231986d44401 (patch)
tree5b37f54ed7818854febae4fdf656e1a4a2b16076 /xs_fcgi.h
parentDon't proxy our own URLs. (diff)
downloadpenes-snac2-a6bf1ee0d0e238cb13d916c019bc231986d44401.tar.gz
penes-snac2-a6bf1ee0d0e238cb13d916c019bc231986d44401.tar.xz
penes-snac2-a6bf1ee0d0e238cb13d916c019bc231986d44401.zip
Use the raw_path for proxying (as some media may include ? arguments).
Diffstat (limited to 'xs_fcgi.h')
-rw-r--r--xs_fcgi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xs_fcgi.h b/xs_fcgi.h
index 6d3b030..c79121f 100644
--- a/xs_fcgi.h
+++ b/xs_fcgi.h
@@ -179,6 +179,8 @@ xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *fcgi_id)
179 req = xs_dict_append(req, "method", v); 179 req = xs_dict_append(req, "method", v);
180 else 180 else
181 if (strcmp(k, "REQUEST_URI") == 0) { 181 if (strcmp(k, "REQUEST_URI") == 0) {
182 req = xs_dict_append(req, "raw_path", v);
183
182 xs *pnv = xs_split_n(v, "?", 1); 184 xs *pnv = xs_split_n(v, "?", 1);
183 185
184 /* store the path */ 186 /* store the path */