Skip to content

Commit e33026d

Browse files
author
Stephane Landelle
committed
Append char instead of String
1 parent 550ce1c commit e33026d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/request/NettyRequestFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ private byte[] computeBodyFromParams(List<Param> params, Charset bodyCharset) {
189189
StringBuilder sb = new StringBuilder();
190190
for (Param param : params) {
191191
UTF8UrlEncoder.appendEncoded(sb, param.getName());
192-
sb.append("=");
192+
sb.append('=');
193193
UTF8UrlEncoder.appendEncoded(sb, param.getValue());
194-
sb.append("&");
194+
sb.append('&');
195195
}
196196
sb.setLength(sb.length() - 1);
197197
return sb.toString().getBytes(bodyCharset);

0 commit comments

Comments
 (0)