Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
de008127
Commit
de008127
authored
May 04, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bearer token support
parent
e1c8663a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/image_registry/client.rb
lib/image_registry/client.rb
+1
-1
lib/image_registry/repository.rb
lib/image_registry/repository.rb
+1
-1
No files found.
lib/image_registry/client.rb
View file @
de008127
...
...
@@ -19,7 +19,7 @@ module ImageRegistry
if
options
[
:user
]
&&
options
[
:password
]
builder
.
request
(
:basic_auth
,
options
[
:user
].
to_s
,
options
[
:password
].
to_s
)
elsif
options
[
:token
]
builder
.
request
(
:auth
entication
,
:B
earer
,
options
[
:token
].
to_s
)
builder
.
request
(
:auth
orization
,
:b
earer
,
options
[
:token
].
to_s
)
end
builder
.
adapter
:net_http
...
...
lib/image_registry/repository.rb
View file @
de008127
...
...
@@ -25,7 +25,7 @@ module ImageRegistry
def
tags
return
@tags
if
defined?
(
@tags
)
return
unless
manifest
&&
manifest
[
'tags'
]
return
[]
unless
manifest
&&
manifest
[
'tags'
]
@tags
=
manifest
[
'tags'
].
map
do
|
tag
|
ImageRegistry
::
Tag
.
new
(
self
,
tag
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment