diff options
| -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 | } |