From e1cd841b26cfd98b4326e8ea613cc2a6bd06875f Mon Sep 17 00:00:00 2001 From: rickb777 Date: Wed, 15 Mar 2023 15:59:26 +0000 Subject: [PATCH] Fixes test broken since revious Go verison --- assets_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/assets_test.go b/assets_test.go index 972a531..85efcbc 100644 --- a/assets_test.go +++ b/assets_test.go @@ -422,16 +422,14 @@ func TestServeHTTP304(t *testing.T) { isEqual(t, headers["Cache-Control"], emptyStrings, i) isEqual(t, headers["Content-Type"], emptyStrings, i) isEqual(t, headers["Content-Length"], emptyStrings, i) + isEqual(t, headers["Content-Encoding"], emptyStrings, i) if strings.HasSuffix(test.path, ".gz") { - isEqual(t, headers["Content-Encoding"], []string{"gzip"}, i) isEqual(t, headers["Vary"], []string{"Accept-Encoding"}, i) isEqual(t, headers["Etag"], []string{"W/" + etag}, i) } else if strings.HasSuffix(test.path, ".br") { - isEqual(t, headers["Content-Encoding"], []string{"br"}, i) isEqual(t, headers["Vary"], []string{"Accept-Encoding"}, i) isEqual(t, headers["Etag"], []string{"W/" + etag}, i) } else { - isEqual(t, headers["Content-Encoding"], emptyStrings, i) isEqual(t, headers["Vary"], emptyStrings, i) isEqual(t, headers["Etag"], []string{etag}, i) }