@@ -170,7 +170,7 @@ impl RequestBuilder {
|
|||||||
Some(password) => format!("{}:{}", username, password),
|
Some(password) => format!("{}:{}", username, password),
|
||||||
None => format!("{}:", username)
|
None => format!("{}:", username)
|
||||||
};
|
};
|
||||||
let header_value = format!("basic {}", encode(&auth));
|
let header_value = format!("Basic {}", encode(&auth));
|
||||||
self.header(::header::AUTHORIZATION, &*header_value)
|
self.header(::header::AUTHORIZATION, &*header_value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user