Sfoglia il codice sorgente

Don't propagate 4xx error statuses from proxied media.

grunfink 2 mesi fa
parent
commit
52adad8882
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      html.c

+ 3 - 0
html.c

@@ -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));
         }