This commit is contained in:
chrislusf 2015-11-22 10:11:25 -08:00
parent 70d050416b
commit 020dd480ed

View file

@ -117,7 +117,7 @@ func (ms *MasterServer) proxyToLeader(f func(w http.ResponseWriter, r *http.Requ
proxy.Director = func(req *http.Request) { proxy.Director = func(req *http.Request) {
actualHost, err := security.GetActualRemoteHost(req) actualHost, err := security.GetActualRemoteHost(req)
if err == nil { if err == nil {
req.Header.Set(("HTTP_X_FORWARDED_FOR", actualHost) req.Header.Set("HTTP_X_FORWARDED_FOR", actualHost)
} }
director(req) director(req)
} }