Commit 220ca9d
aiohttp: Match response header names case-insensitively.
Response header field names are case-insensitive (RFC 9110 Sec. 5.1), but
ClientSession._request matched Transfer-Encoding and Location with fixed
capitalization via startswith. Servers that send transfer-encoding: or
location: would skip chunked detection or redirects.
Fixes issue #1126.
Signed-off-by: Pablo Ventura <pablogventura@gmail.com>1 parent d8a719f commit 220ca9d
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | | - | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments