Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions docker/auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ def encode_header(auth):
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):
"""
Parses authentication entries
Expand Down
2 changes: 1 addition & 1 deletion docker/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None,
if self._auth_configs:
if headers is None:
headers = {}
headers['X-Registry-Config'] = auth.encode_full_header(
headers['X-Registry-Config'] = auth.encode_header(
self._auth_configs
)

Expand Down