commit e4e58d2
default
·
2024-11-07 19:23:07 +0000 UTC
parent 7dc42f5
Don't proxy our own URLs.
1 files changed,
+1,
-1
M
html.c
M
html.c
+1,
-1
1@@ -47,7 +47,7 @@ xs_str *make_url(const char *href, const char *proxy)
2 {
3 xs_str *url = NULL;
4
5- if (proxy) {
6+ if (proxy && !xs_startswith(href, srv_baseurl)) {
7 xs *p = xs_str_cat(xs_dup(proxy), "/proxy/");
8 url = xs_replace(href, "https:/" "/", p);
9 }