return;
}
break;
}
CharSegment headerKey = _headerKeys[_headerSize];
CharSegment headerValue = _headerValues[_headerSize];
char []headerBuffer = _headerBuffer;
if (keyLength > 5
&& ch == 'H'
&& key[1] == 'T'
&& key[2] == 'T'
&& key[3] == 'P'
&& key[4] == '_') {
int headerOffset = _headerOffset;
for (int i = 5; i < keyLength; i++) {
ch = (char) (key[i] & 0xff);
if (ch == '_')
ch = '-';
headerBuffer[headerOffset++] = (char) ch;
}
headerKey.init(headerBuffer, _headerOffset, keyLength - 5);
is.readAll(headerBuffer, headerOffset, valueLength);
headerValue.init(headerBuffer, headerOffset, valueLength);
_headerOffset = headerOffset + valueLength;
_headerSize++;