fix(handlers): use http.ServeFile for better static file serving

Replace echo's c.File() with standard library http.ServeFile() in the
ServeFile handler. This provides more reliable static file serving and
better handles edge cases in file delivery.
This commit is contained in:
john-okeefe committed 2026-03-06 20:18:23 -05:00
1 parent fadb976179
commit 77f473e090
1 file changed
+2 -1
+2 -1
View File
@@ -1549,5 +1549,6 @@ func (mh *MediaHandler) ServeFile(c *echo.Context) error {
c.Response().Header().Set("Content-Type", contentType)
c.Response().Header().Set("Cache-Control", "public, max-age=86400")
return c.File(fullPath)
http.ServeFile(c.Response(), c.Request(), fullPath)
return nil
}