Set 'Content-Encoding' to 'identity' if necessary
This commit is contained in:
parent
bf1fc6bc23
commit
db823d9041
@ -78,7 +78,9 @@ public class HttpDecompressionHandler extends SimpleChannelUpstreamHandler {
|
||||
// Decompress the content and remove or replace the existing headers
|
||||
// so that the message looks like an uncompressed message.
|
||||
if (encoding != 0) {
|
||||
m.removeHeader(HttpHeaders.Names.CONTENT_ENCODING);
|
||||
if (contentEncoding != null) {
|
||||
m.setHeader(HttpHeaders.Names.CONTENT_ENCODING, HttpHeaders.Values.IDENTITY);
|
||||
}
|
||||
ChannelBuffer content = m.getContent();
|
||||
if (content.readable()) {
|
||||
beginDecompression(encoding);
|
||||
|
Loading…
x
Reference in New Issue
Block a user