Oops. Silly mistake when creating a new string builder
This commit is contained in:
parent
3235c154a3
commit
445be963ae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user