This commit is contained in:
gongluck
2023-12-16 14:37:35 +08:00
committed by GitHub
parent 919477ffe4
commit 8c2f4c1899

View File

@@ -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
}