Merge pull request #934 from jpinner/fix_spdy_regression_master

SPDY: fix regression in SpdyFrameDecoder.decodeHeaderBlock()
This commit is contained in:
Jeff Pinner 2013-01-14 10:59:54 -08:00
commit c20d875817

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;