< prev index next >
modules/web/src/main/java/com/sun/webkit/network/URLLoader.java
Print this page
*** 516,530 ****
--- 516,540 ----
e.getMessage()));
}
}
String encoding = c.getContentEncoding();
+ if (inputStream != null) {
+ try {
if ("gzip".equalsIgnoreCase(encoding)) {
inputStream = new GZIPInputStream(inputStream);
} else if ("deflate".equalsIgnoreCase(encoding)) {
inputStream = new InflaterInputStream(inputStream);
}
+ } catch (IOException e) {
+ if (logger.isLoggable(Level.FINE)) {
+ logger.log(Level.FINE, String.format("Exception caught: [%s], %s",
+ e.getClass().getSimpleName(),
+ e.getMessage()));
+ }
+ }
+ }
ByteBufferAllocator allocator =
byteBufferPool.newAllocator(MAX_BUF_COUNT);
ByteBuffer byteBuffer = null;
try {
< prev index next >