Skip to content

Commit 21ed9eb

Browse files
committed
add comment for adding Content-Length header
1 parent 4a2618b commit 21ed9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/feign/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ else if (field.equals(ACCEPT_ENCODING)) {
233233
}
234234

235235
if (body == null && request.httpMethod().isWithBody()) {
236-
// To use this Header, set sun.net.http.allowRestrictedHeaders true.
236+
// To use this Header, set 'sun.net.http.allowRestrictedHeaders' property true.
237237
connection.addRequestProperty("Content-Length", "0");
238238
}
239239

0 commit comments

Comments
 (0)