commit 52adad8

grunfink  ·  2026-08-18 15:56:13 +0000 UTC
parent 1c91738
Don't propagate 4xx error statuses from proxied media.
1 files changed,  +3, -0
M html.c
M html.c
+3, -0
 1@@ -5328,6 +5328,9 @@ int html_get_handler(const xs_dict *req, const char *q_path,
 2                     }
 3                 }
 4             }
 5+            else
 6+            if (status >= 400 && status <= 499)
 7+                status = HTTP_STATUS_NOT_FOUND;
 8 
 9             snac_debug(&snac, 1, xs_fmt("Proxy for %s %d", url, status));
10         }