Kaydet (Commit) 7430eb8e authored tarafından Joffrey F's avatar Joffrey F

Merge branch 'fix-build-auth' of https://github.com/moutten/docker-py into moutten-fix-build-auth

...@@ -98,12 +98,6 @@ def encode_header(auth): ...@@ -98,12 +98,6 @@ def encode_header(auth):
return base64.b64encode(auth_json) return base64.b64encode(auth_json)
def encode_full_header(auth):
""" Returns the given auth block encoded for the X-Registry-Config header.
"""
return encode_header({'configs': auth})
def parse_auth(entries): def parse_auth(entries):
""" """
Parses authentication entries Parses authentication entries
......
...@@ -140,7 +140,7 @@ class Client(clientbase.ClientBase): ...@@ -140,7 +140,7 @@ class Client(clientbase.ClientBase):
if self._auth_configs: if self._auth_configs:
if headers is None: if headers is None:
headers = {} headers = {}
headers['X-Registry-Config'] = auth.encode_full_header( headers['X-Registry-Config'] = auth.encode_header(
self._auth_configs self._auth_configs
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment