/**
     * Returns the response body of the HTTP method, if any, as an [EMAIL 
PROTECTED]
InputStream}. 
     * If response body is not available, returns <tt>null</tt>
     * 
     * @return The response body or <code>null</code>.
     * 
     * @throws IOException If an I/O (transport) problem occurs while
obtaining the 
     * response body.
     */
    public InputStream getResponseBodyAsStream() throws IOException {
        if (responseStream != null) {
            return responseStream;
        }
        if (responseBody != null) {
            InputStream byteResponseStream = new
ByteArrayInputStream(responseBody);
            LOG.debug("re-creating response stream from byte array");
            return byteResponseStream;
        }
        return null;
    }

the above code segment is part of the HttpMethodBase class.
on observation we find that the second if is a dead code segment and 
what correction is required.

-- 
View this message in context: 
http://www.nabble.com/found-an-Error-in-HttpMethodBase-class-tf4285189.html#a12198079
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to