Skip to content

Commit

Permalink
[filesystem middleware] improve status for SendFile (#2664)
Browse files Browse the repository at this point in the history
SendFile response code for success
  • Loading branch information
geerew authored Oct 6, 2023
1 parent 59409f3 commit 8228da9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions middleware/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 8228da9

Please sign in to comment.