diff options
-rw-r--r-- | src/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builder.rs b/src/builder.rs index 312b499..1f6fc38 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -50,7 +50,7 @@ impl RegistryAuth { /// serialize authentication as JSON in base64 pub fn serialize(&self) -> String { serde_json::to_string(self) - .map(|c| base64::encode(&c)) + .map(|c| base64::encode_config(&c, base64::URL_SAFE)) .unwrap() } } |