Skip to content

Add support for Encoding.DEFLATE_NOWRAP #653

Closed
@tliron

Description

@tliron

There are two standards for Deflate encoding: with or without zip header wrapping. Restlet currently support only the former (the default for the JVM). Unfortunately, Internet Explorer only supports the latter (most other browsers support both).

Let's add support for a new Encoding.DEFLATE_NOWRAP constant. Note that the entire Restlet stack must support it. For example, ReadableChunkingChannel must know to deflate and inflate the stream using the proper version of Deflate.

The Java code for nowrap mode is as follows:

new InflaterInputStream(stream, new Inflater(true))
new DeflaterOutputStream(stream, new Deflater(true))

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