Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-04-20 23:48:32 +03:00
parent 67dbbd03ee
commit d60fb7914b

View File

@ -56,7 +56,7 @@ func (c *tomlCodec) ReadBody(conn io.Reader, b interface{}) error {
buf, err := ioutil.ReadAll(conn) buf, err := ioutil.ReadAll(conn)
if err != nil { if err != nil {
return err return err
} else if len(buf) { } else if len(buf) == 0 {
return nil return nil
} }
m.Data = buf m.Data = buf