mirror of
https://github.com/versity/versitygw.git
synced 2026-09-27 10:24:20 +00:00
Merge pull request #60 from versity/ben/head_object
fix: head object content length header
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user