diff --git a/cmd/api-router.go b/cmd/api-router.go index 25f90ab47..30b90a4b8 100644 --- a/cmd/api-router.go +++ b/cmd/api-router.go @@ -108,7 +108,7 @@ func registerAPIRouter(router *mux.Router) { // HeadBucket bucket.Methods("HEAD").HandlerFunc(httpTraceAll(api.HeadBucketHandler)) // PostPolicy - bucket.Methods("POST").HeadersRegexp("Content-Type", "multipart/form-data*").HandlerFunc(httpTraceAll(api.PostPolicyBucketHandler)) + bucket.Methods("POST").HeadersRegexp("Content-Type", "multipart/form-data*").HandlerFunc(httpTraceHdrs(api.PostPolicyBucketHandler)) // DeleteMultipleObjects bucket.Methods("POST").HandlerFunc(httpTraceAll(api.DeleteMultipleObjectsHandler)).Queries("delete", "") // DeleteBucketPolicy