diff options
| author | Joffrey F <joffrey@docker.com> | 2015-10-09 12:01:16 -0700 |
|---|---|---|
| committer | Joffrey F <joffrey@docker.com> | 2015-10-14 17:26:50 -0700 |
| commit | a3a345e2f6ce201e588dff666c4931e0723ff059 (patch) | |
| tree | d1fcdf76ac59c8c2ecea36e4a725553b41dc7765 /docker | |
| parent | 147df4d21feed69ff19a7da99577ba8e7b110b3b (diff) | |
| download | docker-py-a3a345e2f6ce201e588dff666c4931e0723ff059.tar.gz | |
Use url-safe base64 when encoding auth header
+ 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): |
