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:
authorDouwe Maan <douwe@gitlab.com>2018-02-06 22:14:43 +0300
committerDouwe Maan <douwe@gitlab.com>2018-02-06 22:14:43 +0300
commitc51eb79bbe62a7f02a2fd0c826b7af0b7573fa4c (patch)
treed7bd4cd4cf82b838e9da7ca50cf683c55bf02237 /lib/gitlab/workhorse.rb
parent8b4280cb25cd27c3b2c1cbdfb7ee871a7ebaa6d3 (diff)
parent3f3b84e026aa79535fa639bf08962e7b7c6b63cd (diff)
Merge branch 'master' into '26388-push-to-create-a-new-project'
# Conflicts: # lib/gitlab/path_regex.rb
Diffstat (limited to 'lib/gitlab/workhorse.rb')
-rw-r--r--lib/gitlab/workhorse.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index b3f8b0d174d..823df67ea39 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -161,6 +161,18 @@ module Gitlab
]
end
+ def send_url(url, allow_redirects: false)
+ params = {
+ 'URL' => url,
+ 'AllowRedirects' => allow_redirects
+ }
+
+ [
+ SEND_DATA_HEADER,
+ "send-url:#{encode(params)}"
+ ]
+ end
+
def terminal_websocket(terminal)
details = {
'Terminal' => {