diff options
author | Shaun Taheri <github@taheris.co.uk> | 2016-10-28 12:14:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-28 12:14:54 +0200 |
commit | 2083f05f73d65d4919ef4d00acafc771f5f4f529 (patch) | |
tree | 7a85a0e23216546acf1d01216c733832717729fd /src/http/auth_client.rs | |
parent | 12152dd57551368111d3554a2772db24c000ef86 (diff) | |
parent | 99a304db097f31f7810198dd1d0f5cd47ab4033a (diff) | |
download | rvi_sota_client-2083f05f73d65d4919ef4d00acafc771f5f4f529.tar.gz |
Merge pull request #136 from advancedtelematic/feat/pro-1321/backwards-compatibility
Support optional fields in config for backwards compatibility
Diffstat (limited to 'src/http/auth_client.rs')
-rw-r--r-- | src/http/auth_client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/auth_client.rs b/src/http/auth_client.rs index 7d10e5b..3121c21 100644 --- a/src/http/auth_client.rs +++ b/src/http/auth_client.rs @@ -51,7 +51,7 @@ impl AuthClient { impl Client for AuthClient { fn chan_request(&self, req: Request, resp_tx: Sender<Response>) { info!("{} {}", req.method, req.url); - let _ = self.client.request(req.url.inner(), AuthHandler { + let _ = self.client.request((*req.url).clone(), AuthHandler { auth: self.auth.clone(), req: req, timeout: Duration::from_secs(20), |