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

Fix for Issue-213: Authenicated podcast using email address for username not...

Fix for Issue-213: Authenicated podcast using email address for username not working (skeptoid.com/premium.xml)

The url.username automatically url encodes the user name which does not work for this podcast feed.
The fix was to replace the %40 in the username back to an @ symbol.
parent 98a4b3ee
......@@ -288,7 +288,7 @@ impl Source {
if let Some(password) = url.password() {
let mut auth = "Basic ".to_owned();
auth.push_str(&encode_config(
&format!("{}:{}", url.username(), password),
&format!("{}:{}", url.username().replace("%40","@"), password),
URL_SAFE,
));
req.headers_mut()
......
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