Fix basic_auth async builder to send capital "Basic"

Closes #468
This commit is contained in:
Sean McArthur
2019-03-20 14:11:40 -07:00
parent f02ca0ded0
commit faaf41cdfb

View File

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