summaryrefslogtreecommitdiff
path: root/go/internal/gitlabnet/client.go
diff options
context:
space:
mode:
authorMałgorzata Ksionek <mksionek@gitlab.com>2019-10-03 11:10:39 +0200
committerMałgorzata Ksionek <mksionek@gitlab.com>2019-10-03 11:10:39 +0200
commitf00c577dec60798f10b6e8809d78a2895cfa6b04 (patch)
treef532b9e68bf773d28650b63a4bf9d6c9498555ed /go/internal/gitlabnet/client.go
parenteff3b3c0e48e9ffc213108965f16e96f10bcda3e (diff)
downloadgitlab-shell-f00c577dec60798f10b6e8809d78a2895cfa6b04.tar.gz
Introduce changes from code review
Diffstat (limited to 'go/internal/gitlabnet/client.go')
-rw-r--r--go/internal/gitlabnet/client.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/go/internal/gitlabnet/client.go b/go/internal/gitlabnet/client.go
index e61b58d..6b253e0 100644
--- a/go/internal/gitlabnet/client.go
+++ b/go/internal/gitlabnet/client.go
@@ -10,7 +10,6 @@ import (
"strings"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/config"
- "gitlab.com/gitlab-org/gitlab-shell/go/internal/sshenv"
)
const (
@@ -110,10 +109,6 @@ func (c *GitlabClient) DoRequest(method, path string, data interface{}) (*http.R
request.Header.Set(secretHeaderName, encodedSecret)
request.Header.Add("Content-Type", "application/json")
- ipAddr := sshenv.LocalAddr()
- if ipAddr != "" {
- request.Header.Add("X-Forwarded-For", ipAddr)
- }
request.Close = true