From 963a70053ba5263df28cb09726924264bdbf7017 Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Fri, 20 Jul 2018 07:37:46 -0700 Subject: [PATCH] Do not trace HTTP body of PostPolicyBuckethandler (#6177) --- cmd/api-router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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