SPDY: fix regression in SpdyFrameDecoder.decodeHeaderBlock()

This commit is contained in:
Jeff Pinner 2013-01-14 10:44:12 -08:00
parent 392f4a9049
commit 13b3290fd1

View File

@ -594,7 +594,7 @@ public class SpdyFrameDecoder extends FrameDecoder {
}
}
while (numHeaders -- > 0) {
while (numHeaders > 0) {
int headerSize = this.headerSize;
decompressed.markReaderIndex();
@ -654,6 +654,7 @@ public class SpdyFrameDecoder extends FrameDecoder {
return;
} else {
spdyHeaderBlock.addHeader(name, "");
numHeaders --;
this.headerSize = headerSize;
continue;
}
@ -699,6 +700,7 @@ public class SpdyFrameDecoder extends FrameDecoder {
index ++;
offset = index;
}
numHeaders --;
this.headerSize = headerSize;
}
decompressed = null;