From d2090061c13aff4647999b1d8725f774c9fe599b Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Thu, 2 Nov 2023 18:37:11 +0100 Subject: Refactor stdlib to more generic functions --- utils.go | 1 + 1 file changed, 1 insertion(+) (limited to 'utils.go') diff --git a/utils.go b/utils.go index 161cff8..861ee38 100644 --- a/utils.go +++ b/utils.go @@ -39,5 +39,6 @@ func MockResponse(statusCode int, html string) (*http.Response, error) { StatusCode: statusCode, Status: fmt.Sprintf("%d %s", statusCode, http.StatusText(statusCode)), Body: io.NopCloser(strings.NewReader(html)), + Header: http.Header{"Content-Type": []string{"text/html"}}, }, nil } -- cgit v1.2.3