Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r--lib/gitlab/workhorse.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index 02418c45e73..79131404465 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -156,11 +156,14 @@ module Gitlab
]
end
- def send_url(url, allow_redirects: false)
+ def send_url(url, allow_redirects: false, method: 'GET', body: nil, headers: nil)
params = {
'URL' => url,
- 'AllowRedirects' => allow_redirects
- }
+ 'AllowRedirects' => allow_redirects,
+ 'Body' => body.to_s,
+ 'Header' => headers,
+ 'Method' => method
+ }.compact
[
SEND_DATA_HEADER,