Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1484

GzipCompressingEntity shouldn't close outputstream in finally block

    XMLWordPrintableJSON

Details

    Description

      Using "Transfer-Encoding: chunked" when underlying stream throws any exception, it shouldn't close stream, because closing stream means send final zero chunk and server side decide that all is well and consume all stream as correct data.

      It's seems to me that solution: remove finally block, just close gzip stream after writeTo().

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jethands Danila Dyugurov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: