mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
Merge pull request #14767 from Davidzkeng/fix/oidc_redirect
fix(apigateway): edit http redirect code 301 to 302
This commit is contained in:
+1
-1
@@ -156,7 +156,7 @@ func SendStream(w http.ResponseWriter, isPartial bool, hdr http.Header, stream i
|
||||
|
||||
func SendRedirect(w http.ResponseWriter, redirectUrl string) {
|
||||
w.Header().Set("Location", redirectUrl)
|
||||
w.WriteHeader(301)
|
||||
w.WriteHeader(302)
|
||||
w.Write([]byte{})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user