Do not abort request when response content-type is malformed
This commit is contained in:
parent
5953331c73
commit
42778d2ba6
2 changed files with 15 additions and 1 deletions
|
@ -577,6 +577,11 @@ func Test_ExcludedContentTypes(t *testing.T) {
|
|||
contentType: "",
|
||||
expCompression: true,
|
||||
},
|
||||
{
|
||||
desc: "MIME malformed",
|
||||
contentType: "application/json;charset=UTF-8;charset=utf-8",
|
||||
expCompression: false,
|
||||
},
|
||||
{
|
||||
desc: "MIME match",
|
||||
contentType: "application/json",
|
||||
|
@ -687,6 +692,11 @@ func Test_IncludedContentTypes(t *testing.T) {
|
|||
contentType: "",
|
||||
expCompression: true,
|
||||
},
|
||||
{
|
||||
desc: "MIME malformed",
|
||||
contentType: "application/json;charset=UTF-8;charset=utf-8",
|
||||
expCompression: false,
|
||||
},
|
||||
{
|
||||
desc: "MIME match",
|
||||
contentType: "application/json",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue