diff options
author | Jannis Pohl <838818+jannispl@users.noreply.github.com> | 2025-04-20 13:43:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-20 11:43:48 +0000 |
commit | d1a3bd68140adcc76ad6163c02a1fe00d59aecae (patch) | |
tree | b8f33b4cde1be43c8ae2cac87a14fe07441e22c3 /routers/web/admin/admin_test.go | |
parent | af6be75adb99ff42215a945927c016aa5e40dab2 (diff) | |
download | gitea-main.tar.gz gitea-main.zip |
Resolve #32554
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/admin/admin_test.go')
-rw-r--r-- | routers/web/admin/admin_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/admin/admin_test.go b/routers/web/admin/admin_test.go index a568c7c5c8..04fad4663c 100644 --- a/routers/web/admin/admin_test.go +++ b/routers/web/admin/admin_test.go @@ -76,6 +76,7 @@ func TestShadowPassword(t *testing.T) { func TestSelfCheckPost(t *testing.T) { defer test.MockVariableValue(&setting.AppURL, "http://config/sub/")() defer test.MockVariableValue(&setting.AppSubURL, "/sub")() + defer test.MockVariableValue(&setting.UseHostHeader, false)() ctx, resp := contexttest.MockContext(t, "GET http://host/sub/admin/self_check?location_origin=http://frontend") SelfCheckPost(ctx) |