diff --git a/go/weed/weed_server/master_server.go b/go/weed/weed_server/master_server.go index c5d9646c9..db70ca6b1 100644 --- a/go/weed/weed_server/master_server.go +++ b/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) }