summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorValentine Valyaeff <valentine.valyaeff@gmail.com>2021-01-13 05:19:00 +0200
committerGitHub <noreply@github.com>2021-01-12 22:19:00 -0500
commitce4e36a20c81b96eedff47cd76b5bdeaa8c99b28 (patch)
treeb256c66dd04e767c127e77c9ac4358407fb26c7e /src
parent03cc8c075f86f1bd9e2c4e29872a0e8b9072c7f0 (diff)
Fix X-Registry-Auth header (#245)
Diffstat (limited to 'src')
-rw-r--r--src/builder.rs2
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()
}
}