Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8ACC618555 for ; Wed, 25 Nov 2015 15:02:11 +0000 (UTC) Received: (qmail 76423 invoked by uid 500); 25 Nov 2015 15:02:11 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 76390 invoked by uid 500); 25 Nov 2015 15:02:11 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 76334 invoked by uid 99); 25 Nov 2015 15:02:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2015 15:02:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ED31E2C0453 for ; Wed, 25 Nov 2015 15:02:10 +0000 (UTC) Date: Wed, 25 Nov 2015 15:02:10 +0000 (UTC) From: "Svilena Momova (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1699) Content of response with content-encoding: deflate cannot be read MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15026894#comment-15026894 ] Svilena Momova commented on HTTPCLIENT-1699: -------------------------------------------- Yes, of course. I'll provide it tomorrow. Regards, Svilena > Content of response with content-encoding: deflate cannot be read > ----------------------------------------------------------------- > > Key: HTTPCLIENT-1699 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1699 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 4.5.1 > Environment: Windows7, > java version "1.8.0_66" > Java(TM) SE Runtime Environment (build 1.8.0_66-b17) > Reporter: Svilena Momova > > Hello, > I'm using httpclient-4.5.1. Yesterday I received http chunked response with content-encoding header with value "deflate". > Trying to read the compressed content from the response I get an exception with the following stack trace: > {noformat} > java.io.EOFException: Unexpected end of ZLIB input stream > at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240) > at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) > at org.apache.http.client.entity.DeflateInputStream.read(DeflateInputStream.java:153) > at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:73) > {noformat} > It seems that when the end of the content is reached, instead of correct closing of the stream, this exception happens. > Can you please confirm the issue and when it could be fixed? > Thank you! > Best Regards, > Svilena Momova -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org