From f8e4b620f27430e5e073126a0eb5dd0ef2c596aa Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Tue, 24 May 2022 10:18:38 +0800 Subject: [PATCH] opensergo: fix http path & method (#2035) --- contrib/opensergo/opensergo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/opensergo/opensergo.go b/contrib/opensergo/opensergo.go index f22e16e0a..16a48d7d6 100644 --- a/contrib/opensergo/opensergo.go +++ b/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,