From 445be963ae861e5e2474422ff54db4272fb39a3e Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 10 Mar 2009 07:57:36 +0000 Subject: [PATCH] Oops. Silly mistake when creating a new string builder --- .../org/jboss/netty/handler/codec/http/HttpResponseStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/http/HttpResponseStatus.java b/src/main/java/org/jboss/netty/handler/codec/http/HttpResponseStatus.java index f9550f0589..2af85340b1 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/HttpResponseStatus.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/HttpResponseStatus.java @@ -152,7 +152,7 @@ public class HttpResponseStatus implements Comparable { @Override public String toString() { - StringBuilder buf = new StringBuilder(reasonPhrase + 5); + StringBuilder buf = new StringBuilder(reasonPhrase.length() + 5); buf.append(code); buf.append(' '); buf.append(reasonPhrase);