Commit f0d473b8 authored by Andrew Bates's avatar Andrew Bates
Browse files

Added a brief comment to explain the change

parent 262fe3c4
Pipeline #269996 passed with stages
in 25 minutes and 39 seconds
......@@ -288,6 +288,7 @@ impl Source {
if let Some(password) = url.password() {
let mut auth = "Basic ".to_owned();
auth.push_str(&encode_config(
//url.username() converts @ symbols to %40 automatically. The "replace" undoes that.
&format!("{}:{}", url.username().replace("%40", "@"), password),
URL_SAFE,
));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment