commit 6fed0f6
grunfink
·
2026-08-18 17:23:56 +0000 UTC
parent ed9571a
More proxy test fixes.
1 files changed,
+4,
-0
M
html.c
M
html.c
+4,
-0
1@@ -5293,6 +5293,10 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 /* pick the raw path (including optional ? arguments) */
3 const char *raw_path = xs_dict_get(req, "raw_path");
4
5+ /* skip the prefix and user part */
6+ xs *s = xs_fmt("%s/%s/", xs_dict_get(srv_config, "prefix"), snac.uid);
7+ raw_path += strlen(s);
8+
9 /* skip to where the proxy/ string starts */
10 raw_path += xs_str_in(raw_path, proxy_prefix);
11