This is an automated email from the ASF dual-hosted git repository. tianxiaoliang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/master by this push: new 1182bc1 As there is parameter validation, remove API level body limit for service registration, use global limit instead. (#673) 1182bc1 is described below commit 1182bc1aab1421f593221602d6da2fc61760d800 Author: humingcheng <humingcheng1...@163.com> AuthorDate: Tue Aug 4 20:38:18 2020 +0800 As there is parameter validation, remove API level body limit for service registration, use global limit instead. (#673) --- server/handler/maxbody/maxbody.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/server/handler/maxbody/maxbody.go b/server/handler/maxbody/maxbody.go index 2aae8f0..58c08ad 100644 --- a/server/handler/maxbody/maxbody.go +++ b/server/handler/maxbody/maxbody.go @@ -25,15 +25,11 @@ import ( ) const ( - microserviceSize = 5 * 1024 // 5KB - instanceSize = 5 * 1024 // 5KB - propertiesSize = 3 * 1024 // 3KB + instanceSize = 5 * 1024 // 5KB + propertiesSize = 3 * 1024 // 3KB ) var resourcesMap = map[string]int64{ - "/registry/v3/microservices": microserviceSize, - "/v4/:project/registry/microservices": microserviceSize, - "/registry/v3/microservices/:serviceId/instances": instanceSize, "/v4/:project/registry/microservices/:serviceId/instances": instanceSize,