diff --git a/crates/rattler_networking/src/authentication_middleware.rs b/crates/rattler_networking/src/authentication_middleware.rs
index 748d4a3ab..a60514c19 100644
--- a/crates/rattler_networking/src/authentication_middleware.rs
+++ b/crates/rattler_networking/src/authentication_middleware.rs
@@ -98,7 +98,6 @@ impl AuthenticationMiddleware {
let mut header_value = reqwest::header::HeaderValue::from_str(&basic_auth)
.expect("base64 can always be converted to a header value");
header_value.set_sensitive(true);
-
req.headers_mut()
.insert(reqwest::header::AUTHORIZATION, header_value);
Ok(req)
diff --git a/crates/rattler_networking/src/authentication_storage/backends/netrc.rs b/crates/rattler_networking/src/authentication_storage/backends/netrc.rs
index 264a83a3f..95bad509c 100644
--- a/crates/rattler_networking/src/authentication_storage/backends/netrc.rs
+++ b/crates/rattler_networking/src/authentication_storage/backends/netrc.rs
@@ -70,9 +70,12 @@ impl NetRcStorage {
}
/// Retrieve the authentication information for the given host
- pub fn get_password(&self, host: &str) -> Result