Commit 9bb793e
committed
Content-Length header should be honored when passing an InputStream, 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.
Result:
Chunked transfer-encoding is no longer enforced1 parent e0b097d commit 9bb793e
File tree
1 file changed
+4
-1
lines changed- client/src/main/java/org/asynchttpclient/netty/request
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
0 commit comments