[ https://issues.apache.org/jira/browse/SCB-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471356#comment-16471356 ]
ASF GitHub Bot commented on SCB-491: ------------------------------------ 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: us...@infra.apache.org > Test Schema function of Service Center is not available > ------------------------------------------------------- > > Key: SCB-491 > URL: https://issues.apache.org/jira/browse/SCB-491 > Project: Apache ServiceComb > Issue Type: Bug > Components: Service-Center > Affects Versions: service-center-1.0.0-m1 > Reporter: mabin > Assignee: Mohammad Asif Siddiqui > Priority: Major > Fix For: service-center-1.0.0-m2 > > Attachments: bmi_test_schema.png > > > Service Center version: 1.0.0-m1 > Test case: > https://github.com/apache/incubator-servicecomb-java-chassis/tree/master/samples/bmi > !bmi_test_schema.png! -- This message was sent by Atlassian JIRA (v7.6.3#76005)