diff options
| author | grunfink <grunfink@comam.es> | 2026-08-18 17:56:13 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-08-18 17:56:13 +0200 |
| commit | 52adad8882d1504e8a8422ddb128b4976b853113 (patch) | |
| tree | e50439df7c4ec37620270df7bdca6705b11d2c29 /html.c | |
| parent | 1c91738ddac50665fa6a8f3a6fd8892b72de005d (diff) | |
Don't propagate 4xx error statuses from proxied media.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5328,6 +5328,9 @@ int html_get_handler(const xs_dict *req, const char *q_path, } } } + else + if (status >= 400 && status <= 499) + status = HTTP_STATUS_NOT_FOUND; snac_debug(&snac, 1, xs_fmt("Proxy for %s %d", url, status)); } |