Don't panic if the client builder fails (#398)
This commit is contained in:
@@ -253,7 +253,8 @@ pub mod async {
|
||||
/// - redirect loop was detected
|
||||
/// - redirect limit was exhausted
|
||||
pub fn get<T: IntoUrl>(url: T) -> ::Result<Response> {
|
||||
Client::new()
|
||||
Client::builder()
|
||||
.build()?
|
||||
.get(url)
|
||||
.send()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user