This commit is contained in:
RedKale
2016-02-26 14:12:13 +08:00
parent 22c907e088
commit da6226a067

View File

@@ -195,7 +195,7 @@ public class HttpRequest extends Request<HttpContext> {
private boolean readLine(ByteBuffer buffer, ByteArray bytes) {
byte lasted = '\r';
bytes.size();
bytes.clear();
for (;;) {
if (!buffer.hasRemaining()) {
if (lasted != '\r') bytes.write(lasted);