async-http-client
async-http-client copied to clipboard
DecompressionException for some correctly gzipped content
I get io.netty.handler.codec.compression.DecompressionException: Input is not in the GZIP format from some urls when header accept-encoding: gzip is used. When I turn decompression off and decompress the content myself using java.util.zip.GZIPInputStream, there is no problem with decompression.
To turn decompression off I use
new DefaultAsyncHttpClientConfig.Builder()
.setHttpAdditionalChannelInitializer(
ch -> {
ch.pipeline().remove(ChannelManager.INFLATER_HANDLER);
})
Examples of url where I got DecompressionException:
https://www.slovakparagliding.sk/product/swing-mito/
http://www.poslatpohladnicu.sk/myslim-na-svadbu-s-tebou/605.html
https://vinko.sk/casopis-vinoteka/vinoteka-1-2015-v-predaji-520
http://www.novota-art.sk/quote/motesickych1/