pass through http status

This commit is contained in:
2025-11-18 12:19:40 +01:00
parent a2ae2c7b7d
commit 6ba9f3e65b
+2 -2
View File
@@ -165,8 +165,8 @@ func (app *App) handleProxy(w http.ResponseWriter, r *http.Request) {
defer headResp.Body.Close()
if headResp.StatusCode != http.StatusOK {
logger.Warn("Origin server returned non-200 status for HEAD request", "status", headResp.StatusCode)
w.WriteHeader(headResp.StatusCode)
logger.Warn("Origin server returned non-200 status for HEAD request, passing through", "status", headResp.StatusCode)
app.handleStream(w, r, mediaURL)
return
}