Skip to content

Commit

Permalink
Fixed #3771 (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongluck committed Dec 16, 2023
1 parent 919477f commit 8c2f4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/internal/requestparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewRequestParser(r *http.Request, resolver jsonpb.AnyResolver) (grpcurl.Req
}

m := make(map[string]any)
if err := json.NewDecoder(body).Decode(&m); err != nil {
if err := json.NewDecoder(body).Decode(&m); err != nil && err != io.EOF {
return nil, err
}

Expand Down

0 comments on commit 8c2f4c1

Please sign in to comment.