1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-11-06 08:59:18 +02:00

opensergo: fix http path & method (#2035)

This commit is contained in:
Tony Chen
2022-05-24 10:18:38 +08:00
committed by GitHub
parent 643caa6df9
commit 97fd33ece7

View File

@@ -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,