diff --git a/Network/HTTP/Proxy.hs b/Network/HTTP/Proxy.hs
--- a/Network/HTTP/Proxy.hs
+++ b/Network/HTTP/Proxy.hs
@@ -743,7 +743,8 @@
                            (80, False) -> mempty
                            (443, True) -> mempty
                            (n, _) -> fromString (":" ++ show n)
-            urlStr = "http://" `mappend` serverName req
+            urlStr = (if isSecure req then "https://" else "http://")
+                               `mappend` serverName req
                                `mappend` portStr
                                `mappend` rawPathInfo req
                                `mappend` rawQueryString req
diff --git a/http-proxy.cabal b/http-proxy.cabal
--- a/http-proxy.cabal
+++ b/http-proxy.cabal
@@ -1,5 +1,5 @@
 Name:           http-proxy
-Version:        0.0.9
+Version:        0.0.10
 License:        BSD3
 License-file:   LICENSE
 Author:         Michael Snoyman, Stephen Blackheath, Erik de Castro Lopo
