Upstream versity/versitygw state of the touched files before 6c6b14f7e8
This commit is contained in:
1 parent
25ec56b451
commit
cc9a86ef08
6 files changed
+3
-258
No files matched your search
@@ -102,17 +102,6 @@ func (sa *S3ApiRouter) Init() {
|
||||
objectRouter := sa.app.Group("/:bucket/*")
|
||||
applyBucketCORS := middlewares.ApplyBucketCORS(sa.be, middlewares.BucketFromPath, sa.corsAllowOrigin)
|
||||
|
||||
// '?uploads' together with '?uploadId' is rejected for every
|
||||
// bucket and object operation
|
||||
for _, method := range []string{http.MethodGet, http.MethodHead, http.MethodPut, http.MethodPost, http.MethodDelete} {
|
||||
for _, router := range []fiber.Router{bucketRouter, objectRouter} {
|
||||
router.Add([]string{method}, "",
|
||||
middlewares.MatchQueryArgs("uploads", "uploadId"),
|
||||
controllers.ProcessHandlers(ctrl.HandleErrorRoute(s3err.GetInvalidArgumentErr(s3err.InvalidArgUploadIdWithUploads, "uploadId")), metrics.ActionUndetected, services),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// PUT bucket operations
|
||||
bucketRouter.Put("",
|
||||
middlewares.MatchQueryArgs("tagging"),
|
||||
|
||||
Reference in new issue
Block a user