opensergo: fix http path & method (#2035)

pull/2041/head
Tony Chen 3 years ago committed by GitHub
parent 643caa6df9
commit 97fd33ece7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      contrib/opensergo/opensergo.go

@ -131,7 +131,7 @@ func listDescriptors() (services []*v1.ServiceDescriptor, types []*v1.TypeDescri
pattern := proto.GetExtension(md.Options(), annotations.E_Http).(*annotations.HttpRule).GetPattern()
var httpPath, httpMethod string
if pattern != nil {
httpPath, httpMethod = HTTPPatternInfo(pattern)
httpMethod, httpPath = HTTPPatternInfo(pattern)
}
methodDesc := v1.MethodDescriptor{
Name: mName,

Loading…
Cancel
Save