Skip to content

Commit

Permalink
[middleware/filesystem]: Set response code (#2632)
Browse files Browse the repository at this point in the history
Specified response code
  • Loading branch information
cuipeiyu authored Sep 14, 2023
1 parent 2af907d commit d0d5e9e
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 @@ -180,6 +180,8 @@ func New(config ...Config) fiber.Handler {
return fiber.ErrForbidden
}

c.Status(fiber.StatusOK)

modTime := stat.ModTime()
contentLength := int(stat.Size())

Expand Down

0 comments on commit d0d5e9e

Please sign in to comment.