diff --git a/cmd/protoc-gen-go-http/template.go b/cmd/protoc-gen-go-http/template.go index 3b70678a6..794210852 100644 --- a/cmd/protoc-gen-go-http/template.go +++ b/cmd/protoc-gen-go-http/template.go @@ -10,7 +10,7 @@ var httpTemplate = ` {{$svrType := .ServiceType}} {{$svrName := .ServiceName}} -{{- range .Methods}} +{{- range .MethodSets}} const Operation{{$svrType}}{{.OriginalName}} = "/{{$svrName}}/{{.OriginalName}}" {{- end}}