summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go1
1 files changed, 1 insertions, 0 deletions
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
}