fix: head object content length header

This commit is contained in:
Ben McClelland
2023-06-06 10:06:22 -07:00
parent 69be1dcd1e
commit d526569d13
+4 -1
View File
@@ -344,7 +344,10 @@ func (c S3ApiController) HeadObject(ctx *fiber.Ctx) error {
},
})
return ctx.SendStatus(http.StatusOK)
// https://github.com/gofiber/fiber/issues/2080
// ctx.SendStatus() sets incorrect content length on HEAD request
ctx.Status(http.StatusOK)
return nil
}
func (c S3ApiController) CreateActions(ctx *fiber.Ctx) error {