mirror of
https://github.com/harness/drone.git
synced 2025-05-02 22:43:44 +08:00
fix typo in forwarded host
This commit is contained in:
parent
77a799a4c9
commit
9cb2e0aa97
@ -59,7 +59,7 @@ func newEmptyTokenCookie(r *http.Request, cookieName string) *http.Cookie {
|
||||
domain = url.Hostname()
|
||||
}
|
||||
}
|
||||
if headers, ok := r.Header["X-Forwarded-Header"]; ok && len(headers) > 0 {
|
||||
if headers, ok := r.Header["X-Forwarded-Host"]; ok && len(headers) > 0 {
|
||||
domain = headers[0]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user