Browse Source

fix

pull/228/head
chrislusf 9 years ago
parent
commit
020dd480ed
  1. 2
      go/weed/weed_server/master_server.go

2
go/weed/weed_server/master_server.go

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

Loading…
Cancel
Save