reta commented on pull request #782:
URL: https://github.com/apache/cxf/pull/782#issuecomment-830676670
@dblevins thanks a lot for looking, that is correct, we do trust
`inputStream.available()` only if it returns non-zero value
```
// if available is 0 it does not mean it is empty
if (is.available() > 0) {
return false;
}
```
Otherwise the assumption is that stream is not empty (and we proceed further
with mark / reset of pushback stream). What do you think?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]