DecompressingEntity not calling close on InputStream retrieved by getContent
----------------------------------------------------------------------------

                 Key: HTTPCLIENT-1078
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1078
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.1.1
            Reporter: Philip Helger


The method DecompressingEntity.writeTo(OutputStream outstream) does not close 
the InputStream retrieved by getContent().
According to the documentation of HttpEntity.writeTo:
IMPORTANT: Please note all entity implementations must ensure that
all allocated resources are properly deallocated when this method
returns.

-> imho this is not satisfied in DecompressingEntity.writeTo 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to