mirror of https://github.com/gofiber/fiber.git
[filesystem middleware] improve status for SendFile (#2664)
SendFile response code for successpull/2665/head
parent
59409f3841
commit
8228da91fc
|
@ -254,6 +254,8 @@ func SendFile(c *fiber.Ctx, filesystem http.FileSystem, path string) error {
|
|||
return fiber.ErrForbidden
|
||||
}
|
||||
|
||||
c.Status(fiber.StatusOK)
|
||||
|
||||
modTime := stat.ModTime()
|
||||
contentLength := int(stat.Size())
|
||||
|
||||
|
|
Loading…
Reference in New Issue