Repository navigation
Commit ef1168b
committed
iis: drop Transfer-Encoding unconditionally when Content-Length is set
The previous fix used stricmp() to match "chunked" exactly, which
misses Transfer-Encoding values like "chunked, chunked", "gzip, chunked",
or anything with extra whitespace. Since ModSecurity always forwards
the body with an explicit Content-Length immediately after this point,
any Transfer-Encoding header copied from the original request is stale
and must be removed regardless of its value. Delete unconditionally.1 parent 03bbda9 commit ef1168b
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1166 | 1169 | | |
1167 | 1170 | | |
1168 | 1171 | | |
| |||
0 commit comments