Skip to content

Commit 03dfa41

Browse files
author
Stephane Landelle
committed
Uri.toUrl should reset underlying StringBuilder, close AsyncHttpClient#800
1 parent d8b4872 commit 03dfa41

File tree

1 file changed

+1
-1
lines changed
  • api/src/main/java/org/asynchttpclient/uri

1 file changed

+1
-1
lines changed

api/src/main/java/org/asynchttpclient/uri/Uri.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public String toUrl() {
105105
sb.append(path);
106106
if (query != null)
107107
sb.append('?').append(query);
108-
109108
url = sb.toString();
109+
sb.setLength(0);
110110
}
111111
return url;
112112
}

0 commit comments

Comments
 (0)