mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 01:08:33 +00:00
This commit is contained in:
parent
cf486a480e
commit
8da5fd9bb7
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package dex
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"html"
|
||||
"io/ioutil"
|
||||
|
|
@ -44,6 +45,7 @@ func NewDexHTTPReverseProxy(serverAddr string) func(writer http.ResponseWriter,
|
|||
resp.Header.Set("Content-Length", strconv.Itoa(0))
|
||||
resp.Header.Set("Location", fmt.Sprintf("/login?sso_error=%s", url.QueryEscape(message)))
|
||||
resp.StatusCode = http.StatusSeeOther
|
||||
resp.Body = ioutil.NopCloser(bytes.NewReader(make([]byte, 0)))
|
||||
return nil
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue