From 3c1f29e4efeb821e3bf8ca644cb78a3a75d1257a Mon Sep 17 00:00:00 2001 From: hxuanyu <2252193204@qq.com> Date: Tue, 27 Jan 2026 20:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=EF=BC=8C=E8=B0=83=E6=95=B4=20`handleImageResponse`=20?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E5=8F=82=E6=95=B0=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/handlers/image_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/handlers/image_test.go b/internal/http/handlers/image_test.go index 2ce56ac..ac1d48a 100644 --- a/internal/http/handlers/image_test.go +++ b/internal/http/handlers/image_test.go @@ -38,7 +38,7 @@ func TestHandleImageResponseRedirect(t *testing.T) { c, _ := gin.CreateTestContext(w) c.Request, _ = http.NewRequest("GET", "/api/v1/image/today?variant=UHD", nil) - handleImageResponse(c, img) + handleImageResponse(c, img, 0) assert.Equal(t, http.StatusFound, w.Code) assert.Contains(t, w.Header().Get("Location"), "bing.com")