diff options
| author | default <nobody@localhost> | 2024-11-07 20:23:07 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-11-07 20:23:07 +0100 |
| commit | e4e58d22224d37b9db760eda5bb25a76c3eea5b2 (patch) | |
| tree | 518117e6551200190bdcad8b4879660e470cfb9c /html.c | |
| parent | 7dc42f5b3b4a8178eb514e5adf255acc777b04aa (diff) | |
Don't proxy our own URLs.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ xs_str *make_url(const char *href, const char *proxy) { xs_str *url = NULL; - if (proxy) { + if (proxy && !xs_startswith(href, srv_baseurl)) { xs *p = xs_str_cat(xs_dup(proxy), "/proxy/"); url = xs_replace(href, "https:/" "/", p); } |