diff --git a/README.md b/README.md index 2107077..037a720 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # go-ipp -[![Version](https://img.shields.io/github/release-pre/phin1x/go-ipp.svg)](https://github.com/phin1x/go-ipp/releases/tag/v1.1.0) +[![Version](https://img.shields.io/github/release-pre/phin1x/go-ipp.svg)](https://github.com/phin1x/go-ipp/releases/tag/v1.3.0) [![Licence](https://img.shields.io/github/license/phin1x/go-ipp.svg)](https://github.com/phin1x/go-ipp/blob/master/LICENSE) diff --git a/reqest.go b/reqest.go index 03a76dc..e90b73c 100644 --- a/reqest.go +++ b/reqest.go @@ -147,7 +147,7 @@ func (d *RequestDecoder) Decode(data io.Writer) (*Request, error) { // when we read from a stream, we may get an EOF if we want to read the end tag // all data should be read and we can ignore the error if err == io.EOF { - break + return req, nil } return nil, err } diff --git a/response.go b/response.go index 0938761..cb3c5a2 100644 --- a/response.go +++ b/response.go @@ -223,7 +223,7 @@ func (d *ResponseDecoder) Decode(data io.Writer) (*Response, error) { // when we read from a stream, we may get an EOF if we want to read the end tag // all data should be read and we can ignore the error if err == io.EOF { - break + return resp, nil } return nil, err }