little-cui commented on a change in pull request #348: SCB-491 Add the Test 
Schema Feature
URL: 
https://github.com/apache/incubator-servicecomb-service-center/pull/348#discussion_r187499074
 
 

 ##########
 File path: frontend/schema/schemahandler.go
 ##########
 @@ -36,8 +36,7 @@ func SchemaHandleFunc(c echo.Context) (err error) {
                response   *http.Response
                req        *http.Request
                instanceIP = r.Header.Get("X-InstanceIP")
-               schemaName = r.Header.Get("X-SchemaName")
-               requestUrl = strings.Replace(r.RequestURI, "testSchema", 
schemaName, -1)
+               requestUrl = strings.Replace(r.RequestURI, "testSchema/", "", 
-1)
 
 Review comment:
   the 3rd parameter of replace function should be 1

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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