diff --git a/internal/reqdata/set.go b/internal/reqdata/set.go index 2417c48..f595c14 100644 --- a/internal/reqdata/set.go +++ b/internal/reqdata/set.go @@ -141,6 +141,9 @@ func (i *Set) parseJSON(req *http.Request) error { decoder := json.NewDecoder(req.Body) if err := decoder.Decode(&parsed); err != nil { + if err == io.EOF { + return nil + } return err }