mirror of
https://github.com/skidoodle/mediaproxy
synced 2026-04-28 08:27:34 +02:00
pass through http status
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user