dont follow redirects

This commit is contained in:
6543 2023-02-14 03:01:31 +01:00
parent 0a163745a9
commit f8013fdd64
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ func TestGetOptions(t *testing.T) {
func TestHttpRedirect(t *testing.T) {
log.Println("=== TestHttpRedirect ===")
resp, err := http.Get("http://mock-pages.codeberg-test.org:8880/README.md")
resp, err := getTestHTTPSClient().Get("http://mock-pages.codeberg-test.org:8880/README.md")
assert.NoError(t, err)
if !assert.NotNil(t, resp) {
t.FailNow()