Skip to content

Commit

Permalink
Merge pull request #385 from apozsuse/auth_header_encoding_fix
Browse files Browse the repository at this point in the history
Fixes encoding of `X-Registry-auth` HTTP Header value from Base64 to `url_safe` Base64
  • Loading branch information
openshift-merge-bot[bot] authored Apr 4, 2024
2 parents ca024cc + 6db1724 commit 9886c62
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 @@ -100,4 +100,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 9886c62

Please sign in to comment.