Skip to content

Commit 30079f9

Browse files
committed
add comment for adding Content-Length header
1 parent bbec180 commit 30079f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +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.
236237
connection.addRequestProperty("Content-Length", "0");
237238
}
238239

0 commit comments

Comments
 (0)