You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in old version "github.com/improbable-eng/grpc-web", it can not modify the "endpointsFunc", so we do follow:
if len(c.preUrl) > 0 { // because can not set the "endpointFunc" of WrapServer, do this so so
old := ctx.Request.URL.Path
if strings.HasPrefix(old, c.preUrl) {
index := len(c.preUrl) - 1
ctx.Request.URL.Path = old[index:]
}
}
but in new version, can modiry the "endpointsFunc", it will be better to replace with "endpointsFunc"
The text was updated successfully, but these errors were encountered:
in old version "github.com/improbable-eng/grpc-web", it can not modify the "endpointsFunc", so we do follow:
if len(c.preUrl) > 0 { // because can not set the "endpointFunc" of WrapServer, do this so so
old := ctx.Request.URL.Path
if strings.HasPrefix(old, c.preUrl) {
index := len(c.preUrl) - 1
ctx.Request.URL.Path = old[index:]
}
}
but in new version, can modiry the "endpointsFunc", it will be better to replace with "endpointsFunc"
The text was updated successfully, but these errors were encountered: