summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMałgorzata Ksionek <mksionek@gitlab.com>2019-10-03 11:47:42 +0200
committerMałgorzata Ksionek <mksionek@gitlab.com>2019-10-03 11:47:42 +0200
commit4190843952861b9db7cc786a140be3aeb7632cbc (patch)
tree6646291d45c3856067f1e6da91bb63e1f51e9da3
parent93859205377ffbfb4e3d1ee035d213d0ee81bc7d (diff)
downloadgitlab-shell-add-ip-address-to-call-to-rails-api.tar.gz
-rw-r--r--go/internal/gitlabnet/client.go1
-rw-r--r--spec/vcr_cassettes/allowed-pull.yml2
-rw-r--r--spec/vcr_cassettes/allowed-push.yml2
-rw-r--r--spec/vcr_cassettes/http-pull-disabled.yml2
-rw-r--r--spec/vcr_cassettes/http-push-disabled.yml2
-rw-r--r--spec/vcr_cassettes/ssh-pull-disabled.yml2
-rw-r--r--spec/vcr_cassettes/ssh-pull-project-denied-with-user.yml2
-rw-r--r--spec/vcr_cassettes/ssh-pull-project-denied.yml2
-rw-r--r--spec/vcr_cassettes/ssh-push-disabled.yml2
-rw-r--r--spec/vcr_cassettes/ssh-push-project-denied.yml2
10 files changed, 9 insertions, 10 deletions
diff --git a/go/internal/gitlabnet/client.go b/go/internal/gitlabnet/client.go
index 6b253e0..dacb1d6 100644
--- a/go/internal/gitlabnet/client.go
+++ b/go/internal/gitlabnet/client.go
@@ -109,7 +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")
-
request.Close = true
response, err := c.httpClient.Do(request)
diff --git a/spec/vcr_cassettes/allowed-pull.yml b/spec/vcr_cassettes/allowed-pull.yml
index 25c263f..d324316 100644
--- a/spec/vcr_cassettes/allowed-pull.yml
+++ b/spec/vcr_cassettes/allowed-pull.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":true,"gl_repository":"project-3","gl_project_path":"gitlab-org/gitlab.test","repository_path":"/Users/dzaporozhets/Projects/gitlab-development-kit/repositories/gitlab-org/gitlab-test.git"}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 10:44:52 GMT
recorded_with: VCR 2.4.0
diff --git a/spec/vcr_cassettes/allowed-push.yml b/spec/vcr_cassettes/allowed-push.yml
index e61c140..025614a 100644
--- a/spec/vcr_cassettes/allowed-push.yml
+++ b/spec/vcr_cassettes/allowed-push.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":true,"gl_repository":"project-3","gl_project_path":"gitlab-org/gitlab.test","repository_path":"/Users/dzaporozhets/Projects/gitlab-development-kit/repositories/gitlab-org/gitlab-test.git"}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 10:44:52 GMT
recorded_with: VCR 2.4.0
diff --git a/spec/vcr_cassettes/http-pull-disabled.yml b/spec/vcr_cassettes/http-pull-disabled.yml
index abae549..23ef3e5 100644
--- a/spec/vcr_cassettes/http-pull-disabled.yml
+++ b/spec/vcr_cassettes/http-pull-disabled.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":false,"message":"Pulling over HTTP is not allowed."}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 10:32:01 GMT
recorded_with: VCR 2.4.0
diff --git a/spec/vcr_cassettes/http-push-disabled.yml b/spec/vcr_cassettes/http-push-disabled.yml
index 429fc32..676e5b8 100644
--- a/spec/vcr_cassettes/http-push-disabled.yml
+++ b/spec/vcr_cassettes/http-push-disabled.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":false,"message":"Pushing over HTTP is not allowed."}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 10:32:01 GMT
recorded_with: VCR 2.4.0
diff --git a/spec/vcr_cassettes/ssh-pull-disabled.yml b/spec/vcr_cassettes/ssh-pull-disabled.yml
index 54ae895..55ce261 100644
--- a/spec/vcr_cassettes/ssh-pull-disabled.yml
+++ b/spec/vcr_cassettes/ssh-pull-disabled.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":false,"message":"Git access over SSH is not allowed"}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 12:23:57 GMT
recorded_with: VCR 2.4.0
diff --git a/spec/vcr_cassettes/ssh-pull-project-denied-with-user.yml b/spec/vcr_cassettes/ssh-pull-project-denied-with-user.yml
index 35a2c11..b461b5b 100644
--- a/spec/vcr_cassettes/ssh-pull-project-denied-with-user.yml
+++ b/spec/vcr_cassettes/ssh-pull-project-denied-with-user.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":false,"message":"Git access over SSH is not allowed"}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 12:24:05 GMT
recorded_with: VCR 2.4.0
diff --git a/spec/vcr_cassettes/ssh-pull-project-denied.yml b/spec/vcr_cassettes/ssh-pull-project-denied.yml
index 9c99a17..5107d15 100644
--- a/spec/vcr_cassettes/ssh-pull-project-denied.yml
+++ b/spec/vcr_cassettes/ssh-pull-project-denied.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":false,"message":"Git access over SSH is not allowed"}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 12:24:04 GMT
recorded_with: VCR 2.4.0
diff --git a/spec/vcr_cassettes/ssh-push-disabled.yml b/spec/vcr_cassettes/ssh-push-disabled.yml
index 7795e52..c061791 100644
--- a/spec/vcr_cassettes/ssh-push-disabled.yml
+++ b/spec/vcr_cassettes/ssh-push-disabled.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":false,"message":"Git access over SSH is not allowed"}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 12:23:57 GMT
recorded_with: VCR 2.4.0
diff --git a/spec/vcr_cassettes/ssh-push-project-denied.yml b/spec/vcr_cassettes/ssh-push-project-denied.yml
index 0e6f8c8..c16e608 100644
--- a/spec/vcr_cassettes/ssh-push-project-denied.yml
+++ b/spec/vcr_cassettes/ssh-push-project-denied.yml
@@ -41,6 +41,6 @@ http_interactions:
body:
encoding: UTF-8
string: '{"status":false,"message":"Git access over SSH is not allowed"}'
- http_version:
+ http_version:
recorded_at: Wed, 21 Jun 2017 12:24:04 GMT
recorded_with: VCR 2.4.0