diff --git a/integration/get_test.go b/integration/get_test.go index ef00531..04dc753 100644 --- a/integration/get_test.go +++ b/integration/get_test.go @@ -49,6 +49,16 @@ func TestGetContent(t *testing.T) { assert.True(t, getSize(resp.Body) > 1000) } +func TestCustomDomain(t *testing.T) { + resp, err := getTestHTTPSClient().Get("https://mock-pages.codeberg-test.org:4430/README.md") + assert.NoError(t, err) + if !assert.EqualValues(t, http.StatusOK, resp.StatusCode) { + t.FailNow() + } + assert.EqualValues(t, "text/html; charset=utf-8", resp.Header["Content-Type"][0]) + assert.EqualValues(t, 106, getSize(resp.Body)) +} + func TestGetNotFound(t *testing.T) { log.Printf("== TestGetNotFound ==\n") // test custom not found pages