hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bala mani <balaiim...@mail2world.com>
Subject found an Error in HttpMethodBase class
Date Fri, 17 Aug 2007 11:36:06 GMT

     * Returns the response body of the HTTP method, if any, as an {@link
     * 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
            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: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org

View raw message