From d0d5e9ee995a9ae84dc44d931bc8e4d4f2849484 Mon Sep 17 00:00:00 2001 From: CuiPeiyu Date: Thu, 14 Sep 2023 20:46:34 +0800 Subject: [PATCH] [middleware/filesystem]: Set response code (#2632) Specified response code --- middleware/filesystem/filesystem.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/middleware/filesystem/filesystem.go b/middleware/filesystem/filesystem.go index 42276a9b5b..ea23ab05cf 100644 --- a/middleware/filesystem/filesystem.go +++ b/middleware/filesystem/filesystem.go @@ -180,6 +180,8 @@ func New(config ...Config) fiber.Handler { return fiber.ErrForbidden } + c.Status(fiber.StatusOK) + modTime := stat.ModTime() contentLength := int(stat.Size())