Skip to content

Commit 6010b33

Browse files
committed
fix
1 parent 7f8c207 commit 6010b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/protoc-gen-go-http/httpTemplate.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func New{{.ServiceType}}HTTPClient (client *http.Client) {{.ServiceType}}HTTPCli
7070
func (c *{{$svrType}}HTTPClientImpl) {{.Name}}(ctx context.Context, in *{{.Request}}, opts ...http.CallOption) (*{{.Reply}}, error) {
7171
var out {{.Reply}}
7272
pattern := "{{.Path}}"
73-
path := binding.EncodeURL(pattern, in, {{not .HasBody}}, option.Encode().UseTextNameAsKey({{.UseProtoTextNameASKey}}))
73+
path := binding.EncodeURL(pattern, in, {{not .HasBody}}, option.Encode().UseTextNameAsKey({{.UseProtoTextNameAsKey}}))
7474
opts = append(opts, http.Operation(Operation{{$svrType}}{{.OriginalName}}))
7575
opts = append(opts, http.PathTemplate(pattern))
7676
{{if .HasBody -}}

0 commit comments

Comments
 (0)