Clone Url rather than as_str so it doesn't get reparsed

This commit is contained in:
Matthew Scheirer 2017-10-01 12:58:08 -04:00
parent 6399d72bb9
commit fc72303595
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ impl<P: Provider> Client<P> {
]);
let body = body.finish();
let mut response = http_client.post(self.provider.token_uri().as_str())?
let mut response = http_client.post(self.provider.token_uri().clone())?
.header(auth_header)
.header(accept_header)
.header(header::ContentType::form_url_encoded())