Merge pull request #14767 from Davidzkeng/fix/oidc_redirect

fix(apigateway): edit http redirect code 301 to 302
This commit is contained in:
Zexi Li
2022-08-08 19:55:56 +08:00
committed by GitHub
+1 -1
View File
@@ -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{})
}