From 09414332481316d7b9b9cd075cc1deb34debb6f8 Mon Sep 17 00:00:00 2001 From: forrestchen Date: Mon, 12 Nov 2018 19:19:32 +0800 Subject: [PATCH] fix body with "*" bug Signed-off-by: forrestchen --- protoc-gen-grpc-gateway/gengateway/template.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/protoc-gen-grpc-gateway/gengateway/template.go b/protoc-gen-grpc-gateway/gengateway/template.go index 7db03cca64e..1843f4a316e 100644 --- a/protoc-gen-grpc-gateway/gengateway/template.go +++ b/protoc-gen-grpc-gateway/gengateway/template.go @@ -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