-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit 86df723
aiohttp: Fix header case sensitivity.
According to RFC https://datatracker.ietf.org/doc/html/rfc7230#section-3.2
header names are case-insensitive.
This commit makes sure that the module behaves consistently regardless of
the casing of "Content-type" and "Content-Length" (other headers are not
considered by the module).
Without this fix, the client seems to wait for the connection termination
(~10 seconds) prior to returning any content if the casing of
"Content-Length" is different.
Signed-off-by: FuNK3Y <fun__key@hotmail.com>1 parent 43ad7c5 commit 86df723
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
21 | 27 | | |
22 | - | ||
28 | + | ||
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | - | ||
48 | + | ||
43 | 49 | | |
44 | 50 | | |
45 | - | ||
51 | + | ||
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| |||
| 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