0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

routes: be more paranoid

once we have an non-EOF error in this path, not clear if we can really
recover.
This commit is contained in:
Ramkumar Chinchani 2020-01-05 23:02:07 -08:00
parent d5d6928341
commit 8bbf892480

View file

@ -920,7 +920,7 @@ func WriteDataFromReader(w http.ResponseWriter, status int, length int64, mediaT
break
} else if err != nil {
// other kinds of intermittent errors can occur, e.g, io.ErrShortWrite
logger.Error().Err(err).Msg("copying data into http response")
logger.Panic().Err(err).Msg("copying data into http response")
}
}
}