aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-08-18 19:23:56 +0200
committergrunfink <grunfink@comam.es>2026-08-18 19:23:56 +0200
commit6fed0f6823bd6815d01698a1c682c2759160262b (patch)
treefd19b63e5d15654a500055d51150adc2d7475aad /html.c
parented9571af3b970a624f22e5158616d1dde545beb4 (diff)
More proxy test fixes.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/html.c b/html.c
index a93435e..8cb2370 100644
--- a/html.c
+++ b/html.c
@@ -5293,6 +5293,10 @@ int html_get_handler(const xs_dict *req, const char *q_path,
/* pick the raw path (including optional ? arguments) */
const char *raw_path = xs_dict_get(req, "raw_path");
+ /* skip the prefix and user part */
+ xs *s = xs_fmt("%s/%s/", xs_dict_get(srv_config, "prefix"), snac.uid);
+ raw_path += strlen(s);
+
/* skip to where the proxy/ string starts */
raw_path += xs_str_in(raw_path, proxy_prefix);