From 166fb3ca625a15a1083cfff9f645d94f25351af9 Mon Sep 17 00:00:00 2001 From: withchao <48119764+withchao@users.noreply.github.com> Date: Tue, 25 Jul 2023 15:24:15 +0800 Subject: [PATCH] fix: http redirect compatibility (#659) * fix: StringValue When there are double quotes in the string value, serialization and deserialization fail Signed-off-by: withchao <993506633@qq.com> * test: StatusTemporaryRedirect -> StatusFound Signed-off-by: withchao <993506633@qq.com> --------- Signed-off-by: withchao <993506633@qq.com> --- internal/api/third.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/third.go b/internal/api/third.go index 7de0493e0..5bd38a5e8 100644 --- a/internal/api/third.go +++ b/internal/api/third.go @@ -95,5 +95,5 @@ func (o *ThirdApi) ObjectRedirect(c *gin.Context) { c.String(http.StatusInternalServerError, err.Error()) return } - c.Redirect(http.StatusTemporaryRedirect, resp.Url) + c.Redirect(http.StatusFound, resp.Url) }