diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-10-25 13:01:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 13:01:16 +0800 |
commit | 7c951fdd4a9dc15313522ac27aacd687687ddafc (patch) | |
tree | 6866a5b49517903bbff56759d17784d4d6bd246d /integrations | |
parent | 3676fafdacaef7ef0a6b72be99a342f91c8d5e5d (diff) | |
download | gitea-7c951fdd4a9dc15313522ac27aacd687687ddafc.tar.gz gitea-7c951fdd4a9dc15313522ac27aacd687687ddafc.zip |
In many cases user avatar link should be an absolute URL with http host (#17420)
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/user_avatar_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/user_avatar_test.go b/integrations/user_avatar_test.go index 6de2914f7f..f07b7c7fcf 100644 --- a/integrations/user_avatar_test.go +++ b/integrations/user_avatar_test.go @@ -73,7 +73,7 @@ func TestUserAvatar(t *testing.T) { user2 = db.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User) // owner of the repo3, is an org - req = NewRequest(t, "GET", user2.AvatarLink()) + req = NewRequest(t, "GET", user2.AvatarLinkWithSize(0)) _ = session.MakeRequest(t, req, http.StatusOK) // Can't test if the response matches because the image is re-generated on upload but checking that this at least doesn't give a 404 should be enough. |