Skip to content

Commit

Permalink
Merge 7cf17e6 into bffc1a0
Browse files Browse the repository at this point in the history
  • Loading branch information
hoslo committed Jul 28, 2023
2 parents bffc1a0 + 7cf17e6 commit 06a969e
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 06a969e

Please sign in to comment.