aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-11-14 16:21:14 +0100
committerdefault <nobody@localhost>2024-11-14 16:21:14 +0100
commitf2213021c492e43479b5602e5dee87c4ee04a7c8 (patch)
treef53a6450e6bdb050bb1c924b4b4066bcd23489e4
parent6a22a583fe3d0b01a66d52e90a8dd3e5fe66ab68 (diff)
Minor tweak to proxy code (some URLs were not correctly formed).
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index d344745..3a2b14f 100644
--- a/html.c
+++ b/html.c
@@ -3223,7 +3223,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
/* skip to where the proxy/ string starts */
raw_path += xs_str_in(raw_path, proxy_prefix);
- xs *url = xs_replace(raw_path, proxy_prefix, "https:/" "/");
+ xs *url = xs_replace_n(raw_path, proxy_prefix, "https:/" "/", 1);
xs *hdrs = xs_dict_new();
hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT);