Commit 1d8a630
committed
User defined Content-Length request header should be honored, close #1440
Motivation:
When Content-Length is known beforehand, we shouldn’t ignore it and
enforce chunked transfer-encoding.
Modification:
Honor Content-Length request header when it's defined.
Result:
Chunked transfer-encoding is no longer enforced1 parent e0b097d commit 1d8a630
File tree
1 file changed
+6
-4
lines changed- client/src/main/java/org/asynchttpclient/netty/request
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
0 commit comments