Skip to content

Commit

Permalink
Fixes X-Registry-Auth encoding from base64 to url_safe base64
Browse files Browse the repository at this point in the history
  • Loading branch information
apozsuse committed Mar 26, 2024
1 parent 464c105 commit 26c1cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman/api/http_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ def _filter_values(mapping: Mapping[str, Any], recursion=False) -> Dict[str, Any


def encode_auth_header(auth_config: Dict[str, str]) -> str:
return base64.b64encode(json.dumps(auth_config).encode('utf-8'))
return base64.urlsafe_b64encode(json.dumps(auth_config).encode('utf-8'))

0 comments on commit 26c1cc8

Please sign in to comment.