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>
pull/664/head
withchao 1 year ago committed by GitHub
parent 68f3f1f10b
commit 166fb3ca62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}

Loading…
Cancel
Save