Merge pull request #933 from jpinner/fix_spdy_regression

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

View File

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