SPDY: fix regression in SpdyFrameDecoder.decodeHeaderBlock()

This commit is contained in:
Jeff Pinner 2013-01-14 10:44:12 -08:00
parent 1354b4a1ac
commit f75b6b142c

View File

@ -578,7 +578,7 @@ public class SpdyFrameDecoder extends ByteToMessageDecoder {
}
}
while (numHeaders -- > 0) {
while (numHeaders > 0) {
int headerSize = this.headerSize;
decompressed.markReaderIndex();
@ -638,6 +638,7 @@ public class SpdyFrameDecoder extends ByteToMessageDecoder {
return;
} else {
spdyHeaderBlock.addHeader(name, "");
numHeaders --;
this.headerSize = headerSize;
continue;
}
@ -683,6 +684,7 @@ public class SpdyFrameDecoder extends ByteToMessageDecoder {
index ++;
offset = index;
}
numHeaders --;
this.headerSize = headerSize;
}
decompressed = null;