Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/contrib/config/etcd/go…
Browse files Browse the repository at this point in the history
…ogle.golang.org/grpc-1.57.0
  • Loading branch information
daemon365 authored Jul 28, 2023
2 parents 0bc3ab2 + e2a0bac commit fead868
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cmd/protoc-gen-go-http/httpTemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,10 @@ func _{{$svrType}}_{{.Name}}{{.Num}}_HTTP_Handler(srv {{$svrType}}HTTPServer) fu
if err := ctx.Bind(&in{{.Body}}); err != nil {
return err
}

{{- if not (eq .Body "")}}
if err := ctx.BindQuery(&in); err != nil {
return err
}
{{- end}}
{{- else}}
if err := ctx.BindQuery(&in{{.Body}}); err != nil {
if err := ctx.BindQuery(&in); err != nil {
return err
}
{{- end}}
{{- if .HasVars}}
if err := ctx.BindVars(&in); err != nil {
return err
Expand Down

0 comments on commit fead868

Please sign in to comment.