diff options
author | Małgorzata Ksionek <mksionek@gitlab.com> | 2019-09-23 09:48:01 +0200 |
---|---|---|
committer | Małgorzata Ksionek <mksionek@gitlab.com> | 2019-09-26 12:26:53 +0200 |
commit | 8071ea113454ae26ad9822c0a41efc5bc45f3de2 (patch) | |
tree | 6f8849952a892de5f9c4583e0ddc0059e26f59e2 /go/internal/gitlabnet/client.go | |
parent | 216bfafb4c0001a476e5ca630cd8c3baf7718d8d (diff) | |
download | gitlab-shell-8071ea113454ae26ad9822c0a41efc5bc45f3de2.tar.gz |
Add cr remarks
Diffstat (limited to 'go/internal/gitlabnet/client.go')
-rw-r--r-- | go/internal/gitlabnet/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/internal/gitlabnet/client.go b/go/internal/gitlabnet/client.go index b668fbd..3aa30ad 100644 --- a/go/internal/gitlabnet/client.go +++ b/go/internal/gitlabnet/client.go @@ -109,7 +109,7 @@ func (c *GitlabClient) DoRequest(method, path string, data interface{}) (*http.R request.Header.Set(secretHeaderName, encodedSecret) request.Header.Add("Content-Type", "application/json") - request.Header.Add("X_FORWARDED_FOR", c.config.IpAddr()) + request.Header.Add("X_FORWARDED_FOR", c.config.IPAddr) request.Close = true |