summaryrefslogtreecommitdiff
path: root/lib/gitlab_net.rb
diff options
context:
space:
mode:
authorAsh McKenzie <ash@the-rebellion.net>2018-07-19 14:43:09 +1000
committerAsh McKenzie <ash@the-rebellion.net>2018-07-20 22:28:58 +1000
commit0ddb3c767af79194c13d97e3fa50a90098bc155c (patch)
tree50c01e7efe0e8a3b6aaaf1586751ad2253a51811 /lib/gitlab_net.rb
parente865251ef5d49927146d24c0e913e2391ff5c399 (diff)
downloadgitlab-shell-0ddb3c767af79194c13d97e3fa50a90098bc155c.tar.gz
Support HTTP headers and sending JSON
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r--lib/gitlab_net.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb
index bf417a4..584dd93 100644
--- a/lib/gitlab_net.rb
+++ b/lib/gitlab_net.rb
@@ -91,7 +91,7 @@ class GitlabNet # rubocop:disable Metrics/ClassLength
end
def check
- get("#{internal_api_endpoint}/check", read_timeout: CHECK_TIMEOUT)
+ get("#{internal_api_endpoint}/check", options: { read_timeout: CHECK_TIMEOUT })
end
def authorized_key(key)