humingcheng commented on a change in pull request #124: Support parameter 
validation
URL: https://github.com/apache/servicecomb-kie/pull/124#discussion_r404767218
 
 

 ##########
 File path: server/resource/v1/kv_resource.go
 ##########
 @@ -99,13 +100,13 @@ func (r *KVResource) Put(rctx *restful.Context) {
        kv.Project = project
        err = validatePut(kv)
        if err != nil {
-               WriteErrResponse(rctx, http.StatusBadRequest, err.Error(), 
common.ContentTypeText)
+               WriteErrResponse(rctx, http.StatusBadRequest, err.Error(), 
common.ContentTypeJSON)
 
 Review comment:
   已修改

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to