diff options
Diffstat (limited to 'test/acceptance/encodings_test.go')
-rw-r--r-- | test/acceptance/encodings_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/acceptance/encodings_test.go b/test/acceptance/encodings_test.go index 096107dd..18f2c492 100644 --- a/test/acceptance/encodings_test.go +++ b/test/acceptance/encodings_test.go @@ -64,7 +64,10 @@ func TestCompressedEncoding(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - rsp, err := GetCompressedPageFromListener(t, httpListener, "group.gitlab-example.com", "index.html", tt.encoding) + header := http.Header{ + "Accept-Encoding": []string{tt.encoding}, + } + rsp, err := GetPageFromListenerWithHeaders(t, httpListener, "group.gitlab-example.com", "index.html", header) require.NoError(t, err) defer rsp.Body.Close() |