summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJoxit <Joxit972@gmail.com>2017-01-28 23:05:37 +0100
committerJoxit <Joxit972@gmail.com>2017-01-29 02:29:09 +0100
commit3cee4ed18b6e349b0131407ab3a0501b91dd6eb2 (patch)
tree3a339ffd583c38b44974770486cc86be924f95aa /src/lib.rs
parentef7ad85bb470775a196a47f0bf501cfd8ec5b55b (diff)
[Docker Host] Support for non-https remote API
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9f4841b..518f66d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -515,7 +515,7 @@ impl Docker {
Docker {
transport: Transport::Tcp {
client: client,
- host: format!("https://{}:{}", host.host_str().unwrap().to_owned(), host.port_or_known_default().unwrap()),
+ host: format!("{}://{}:{}", host.scheme(), host.host_str().unwrap().to_owned(), host.port_or_known_default().unwrap()),
},
}
}