Skip to content

Commit

Permalink
fix body with "*" bug
Browse files Browse the repository at this point in the history
Signed-off-by: forrestchen <forrestchen@tencent.com>
  • Loading branch information
ChenLingPeng committed Nov 12, 2018
1 parent 3ff87af commit 0941433
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions protoc-gen-grpc-gateway/gengateway/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ type binding struct {
// It sometimes returns true even though actually the binding does not need.
// But it is not serious because it just results in a small amount of extra codes generated.
func (b binding) HasQueryParam() bool {
if b.Body != nil && len(b.Body.FieldPath) == 0 {
return false
}
fields := make(map[string]bool)
for _, f := range b.Method.RequestType.Fields {
fields[f.GetName()] = true
Expand Down

0 comments on commit 0941433

Please sign in to comment.