diff options
author | Joffrey F <joffrey@docker.com> | 2015-10-09 12:01:16 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2015-10-09 12:23:58 -0700 |
commit | 3c4e5db113d8f460039a52a79b8e191a0dc1469e (patch) | |
tree | d1fcdf76ac59c8c2ecea36e4a725553b41dc7765 /docker | |
parent | f479720d517a7db7f886916190b3032d29d18f10 (diff) | |
download | docker-py-803-urlsafe-b64.tar.gz |
Use url-safe base64 when encoding auth header803-urlsafe-b64
+ regression test
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker')
-rw-r--r-- | docker/auth/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/auth/auth.py b/docker/auth/auth.py index 366bc67..1ee9f81 100644 --- a/docker/auth/auth.py +++ b/docker/auth/auth.py @@ -102,7 +102,7 @@ def decode_auth(auth): def encode_header(auth): auth_json = json.dumps(auth).encode('ascii') - return base64.b64encode(auth_json) + return base64.urlsafe_b64encode(auth_json) def parse_auth(entries): |