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
path: root/lib
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-02-06 18:56:48 +0300
committerNick Thomas <nick@gitlab.com>2018-02-06 18:56:48 +0300
commit805799b71b059b1bfb3578c4e78db3030ec04b6a (patch)
tree5a2ecddaf2283ea6409218c4920ae23134021dd7 /lib
parent9ab4c5b735e0e121996b092cb20bcdc423045c5e (diff)
parent11f882ca437337ebd04331b9e96217f1d48be93e (diff)
Merge branch 'bump-workhorse' into 'master'
Upgrade GitLab Workhorse to v3.6.0 See merge request gitlab-org/gitlab-ce!16946
Diffstat (limited to 'lib')
-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' => {