Skip to content

DecompressionException for some correctly gzipped content #1820

Open
@kpartl

Description

@kpartl

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions