Closed
Description
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
Labels
No labels