If the status code is anything other than SUCCESS for PEEK, it isn't
good. Just return the value.
(I thought it should be this, but I wasn't 100% sure. Peer review == good.)
Submitted by: Will Rowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91404
13f79535-47bb-0310-9956-
ffa450edef68
rv = apr_bucket_read(e, &str, &len, APR_NONBLOCK_READ);
- if (APR_STATUS_IS_EAGAIN(rv)) {
- return APR_EOF;
- }
- else if (rv != APR_SUCCESS)
+ if (rv != APR_SUCCESS)
return rv;
c = str;