mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-07 04:51:34 +00:00
[filesystem middleware] improve status for SendFile (#2664)
SendFile response code for success
This commit is contained in:
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…
x
Reference in New Issue
Block a user