We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f8c207 commit 6010b33Copy full SHA for 6010b33
cmd/protoc-gen-go-http/httpTemplate.tpl
@@ -70,7 +70,7 @@ func New{{.ServiceType}}HTTPClient (client *http.Client) {{.ServiceType}}HTTPCli
70
func (c *{{$svrType}}HTTPClientImpl) {{.Name}}(ctx context.Context, in *{{.Request}}, opts ...http.CallOption) (*{{.Reply}}, error) {
71
var out {{.Reply}}
72
pattern := "{{.Path}}"
73
- path := binding.EncodeURL(pattern, in, {{not .HasBody}}, option.Encode().UseTextNameAsKey({{.UseProtoTextNameASKey}}))
+ path := binding.EncodeURL(pattern, in, {{not .HasBody}}, option.Encode().UseTextNameAsKey({{.UseProtoTextNameAsKey}}))
74
opts = append(opts, http.Operation(Operation{{$svrType}}{{.OriginalName}}))
75
opts = append(opts, http.PathTemplate(pattern))
76
{{if .HasBody -}}
0 commit comments