Repository navigation
Commit 08abf4d
committed
internal/http3: infer headers when Content-Encoding is set but is empty
TestContentEncodingNoSniffing in std verifies that when a
Content-Encoding header is set to an empty value, it is considered as if
the header is not set at all, and that Content-Type header should be
inferred.
Make HTTP/3 behave similarly to HTTP/1 and HTTP/2 implementations in
this regard.
For golang/go#70914
Change-Id: Icbb60fd00f182c1ddc4e2372e4d2e4686a6a6964
Reviewed-on: https://go-review.googlesource.com/c/net/+/812760
Reviewed-by: Nicholas Husin <[email protected]>
LUCI-TryBot-Result: [email protected] <[email protected]>
Reviewed-by: Damien Neil <[email protected]>1 parent 8d10596 commit 08abf4d
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
918 | | - | |
| 918 | + | |
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1041 | 1055 | | |
1042 | 1056 | | |
1043 | 1057 | | |
| |||
0 commit comments