summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-09 23:32:18 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-09 23:32:18 +0300
commitd05f0030a3de42ab3ec6d8c8be290b74698bb929 (patch)
tree38923a9eb972aa6708f51f10d52b3a4fb8f9a009 /lib
parentd5d8e76bd79cd9d61c66539a5069104cf46be2bd (diff)
downloadgitlab-ce-d05f0030a3de42ab3ec6d8c8be290b74698bb929.tar.gz
Added Docker Registry View tests
Diffstat (limited to 'lib')
-rw-r--r--lib/container_registry/client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/container_registry/client.rb b/lib/container_registry/client.rb
index 41d9cb46ae9..0bfb6baffd4 100644
--- a/lib/container_registry/client.rb
+++ b/lib/container_registry/client.rb
@@ -10,7 +10,7 @@ module ContainerRegistry
def initialize(base_uri, options = {})
@base_uri = base_uri
@faraday = Faraday.new(@base_uri) do |conn|
- initialize_connection(conn)
+ initialize_connection(conn, options)
end
end
@@ -51,7 +51,7 @@ module ContainerRegistry
private
- def initialize_connection(conn)
+ def initialize_connection(conn, options)
conn.request :json
conn.headers['Accept'] = MANIFEST_VERSION