diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-11-02 18:37:11 +0100 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-11-02 18:37:11 +0100 |
| commit | d2090061c13aff4647999b1d8725f774c9fe599b (patch) | |
| tree | f323a298a507ed116245abe497f3e8c55d6b24c0 /utils.go | |
| parent | aadd80b3b213988aa5701075f2650198e4066349 (diff) | |
Refactor stdlib to more generic functions
Diffstat (limited to 'utils.go')
| -rw-r--r-- | utils.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 } |