diff options
| author | 2024-11-07 20:23:07 +0100 | |
|---|---|---|
| committer | 2024-11-07 20:23:07 +0100 | |
| commit | e4e58d22224d37b9db760eda5bb25a76c3eea5b2 (patch) | |
| tree | 518117e6551200190bdcad8b4879660e470cfb9c | |
| parent | Propagate the caching headers. (diff) | |
| download | snac2-e4e58d22224d37b9db760eda5bb25a76c3eea5b2.tar.gz snac2-e4e58d22224d37b9db760eda5bb25a76c3eea5b2.tar.xz snac2-e4e58d22224d37b9db760eda5bb25a76c3eea5b2.zip | |
Don't proxy our own URLs.
| -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) | |||
| 47 | { | 47 | { |
| 48 | xs_str *url = NULL; | 48 | xs_str *url = NULL; |
| 49 | 49 | ||
| 50 | if (proxy) { | 50 | if (proxy && !xs_startswith(href, srv_baseurl)) { |
| 51 | xs *p = xs_str_cat(xs_dup(proxy), "/proxy/"); | 51 | xs *p = xs_str_cat(xs_dup(proxy), "/proxy/"); |
| 52 | url = xs_replace(href, "https:/" "/", p); | 52 | url = xs_replace(href, "https:/" "/", p); |
| 53 | } | 53 | } |