mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
dont follow redirects
This commit is contained in:
parent
0a163745a9
commit
f8013fdd64
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ func TestGetOptions(t *testing.T) {
|
||||||
|
|
||||||
func TestHttpRedirect(t *testing.T) {
|
func TestHttpRedirect(t *testing.T) {
|
||||||
log.Println("=== TestHttpRedirect ===")
|
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)
|
assert.NoError(t, err)
|
||||||
if !assert.NotNil(t, resp) {
|
if !assert.NotNil(t, resp) {
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue