Clone Url rather than as_str so it doesn't get reparsed
This commit is contained in:
parent
6399d72bb9
commit
fc72303595
|
@ -128,7 +128,7 @@ impl<P: Provider> Client<P> {
|
||||||
]);
|
]);
|
||||||
let body = body.finish();
|
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(auth_header)
|
||||||
.header(accept_header)
|
.header(accept_header)
|
||||||
.header(header::ContentType::form_url_encoded())
|
.header(header::ContentType::form_url_encoded())
|
||||||
|
|
Loading…
Reference in New Issue