SPDY: replace exception in SpdyHeaderBlockZlibEncoder with EMPTY_BUFFER
This commit is contained in:
parent
a969613540
commit
c86155e4d4
@ -103,7 +103,7 @@ class SpdyHeaderBlockJZlibEncoder extends SpdyHeaderBlockRawEncoder {
|
||||
}
|
||||
|
||||
if (finished) {
|
||||
throw new IllegalAccessException("compressor closed");
|
||||
return Unpooled.EMPTY_BUFFER;
|
||||
}
|
||||
|
||||
ByteBuf decompressed = super.encode(frame);
|
||||
|
@ -62,8 +62,9 @@ class SpdyHeaderBlockZlibEncoder extends SpdyHeaderBlockRawEncoder {
|
||||
if (frame == null) {
|
||||
throw new IllegalArgumentException("frame");
|
||||
}
|
||||
|
||||
if (finished) {
|
||||
throw new IllegalAccessException("compressor closed");
|
||||
return Unpooled.EMPTY_BUFFER;
|
||||
}
|
||||
|
||||
ByteBuf decompressed = super.encode(frame);
|
||||
|
Loading…
x
Reference in New Issue
Block a user