From 020dd480ed8dab0eeb3b6b25b2558084a51b26f2 Mon Sep 17 00:00:00 2001 From: chrislusf Date: Sun, 22 Nov 2015 10:11:25 -0800 Subject: [PATCH] fix --- go/weed/weed_server/master_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }