Oops. Silly mistake when creating a new string builder

This commit is contained in:
Trustin Lee 2009-03-10 07:57:36 +00:00
parent 3235c154a3
commit 445be963ae

View File

@ -152,7 +152,7 @@ public class HttpResponseStatus implements Comparable<HttpResponseStatus> {
@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);