Fixed NETTY-319 HttpMessageDecoder incorrect parsing status line

* Specified an empty reason phrase if no reason phrase was specified
This commit is contained in:
Trustin Lee 2010-05-27 12:38:54 +00:00
parent 7d11a5369f
commit 0d0b0c56c3

View File

@ -603,7 +603,7 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder<HttpMessageDec
return new String[] {
sb.substring(aStart, aEnd),
sb.substring(bStart, bEnd),
sb.substring(cStart, cEnd) };
cStart < cEnd? sb.substring(cStart, cEnd) : "" };
}
private String[] splitHeader(String sb) {