|
From: Vasudevan C. <vco...@gm...> - 2019-06-06 13:08:23
|
KIndly Ignore the below mail. The problem is solved in HTMLUnit 2.35
version.
Thanks in advance for solving this issue.
Regards
Vasu
---------- Forwarded message ---------
From: Vasudevan Comandur <vco...@gm...>
Date: Thu, 6 Jun 2019 at 17:13
Subject: HTMLUNIT 2.33 version throwing error for application/pdf
content-type and content-encoding is gzip-only-text/html
To: <htm...@li...>
All,
Received a PDF file with content-encoding is gzip-only-text/html and
HTML
unit treats this as GZIP stream.
Copied below is the error trace.
Looking forward to your response
Regards
Vasu
2019-06-06 17:04:20,171 [Actor Thread 1] ERROR htmlunit.WebResponseData -
Reading gzip encodec content failed
.
Message: Not in GZIP format
Line | Method
->> 165 | readHeader in java.util.zip.GZIPInputStream
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 79 | <init> in ''
| 91 | <init> . . . . . . . . . . . in ''
| 104 | getStream in
com.gargoylesoftware.htmlunit.WebResponseData
| 171 | getInputStream . . . . . . . in ''
| 272 | getContentAsStream in
com.gargoylesoftware.htmlunit.WebResponse
|