diff --git a/src/main/java/org/jboss/netty/handler/codec/http/HttpMessageDecoder.java b/src/main/java/org/jboss/netty/handler/codec/http/HttpMessageDecoder.java index 9e6c2248a0..8ce41f2b0f 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/HttpMessageDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/HttpMessageDecoder.java @@ -362,19 +362,18 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder current = message.getHeaders(lastHeader); int lastPos = current.size() - 1; String newString = current.get(lastPos) + line.trim(); current.set(lastPos, newString); - break; - default: + } else { String[] header = splitHeader(line); message.addHeader(header[0], header[1]); lastHeader = header[0]; + line = readHeader(buffer); } - line = readHeader(buffer); } while (line.length() != 0); }