From fbeacb0a6bb50be2426515972b975a7f7d5d30f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A5=9A=E5=B2=B3?= Date: Fri, 4 Nov 2022 16:20:10 +0800 Subject: [PATCH] change with const value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 楚岳 fix ci Signed-off-by: 楚岳 --- pkg/utils/common/common_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/utils/common/common_test.go b/pkg/utils/common/common_test.go index 6f7f636b2..016dc4817 100644 --- a/pkg/utils/common/common_test.go +++ b/pkg/utils/common/common_test.go @@ -225,14 +225,11 @@ func TestHttpGetCaFile(t *testing.T) { } func TestHttpGetForbidRedirect(t *testing.T) { - type want struct { - data string - } var ctx = context.Background() testServer := &http.Server{Addr: ":19090"} http.HandleFunc("/redirect", func(writer http.ResponseWriter, request *http.Request) { - http.Redirect(writer, request, "http://192.168.1.1", 302) + http.Redirect(writer, request, "http://192.168.1.1", http.StatusFound) }) go func() {