Commit 342694b
committed
Discard bytes after Content-Length
When accepting an upload, discard any bytes after Content-Length. This
ensures that handlers such as AsyncJson can safely allocate the correct
sized buffer without needing to additionally check for overrun.
Fixes me-no-dev#1001 parent 2d3af2c commit 342694b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
0 commit comments