diff --git a/Test/testsuite.hs b/Test/testsuite.hs
--- a/Test/testsuite.hs
+++ b/Test/testsuite.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE OverloadedStrings #-}
 ------------------------------------------------------------
 -- Copyright : Erik de Castro Lopo <erikd@mega-nerd.com>
@@ -12,6 +13,7 @@
 import Data.Conduit
 import Data.Int (Int64)
 import Data.Monoid
+import System.Environment
 import Test.Hspec
 import Test.Hspec.QuickCheck
 
@@ -37,7 +39,12 @@
 proxyTestDebug = False
 
 main :: IO ()
-main =
+main = do
+#if __GLASGOW_HASKELL__ > 706
+    -- Clear the `http_proxy` enviroment variable. We can't use `unsetEnv` if
+    -- we want to support ghc 7.6.
+    unsetEnv "http_proxy"
+#endif
     bracket
         (mapM async [ runTestServer, runTestServerTLS ])
         (mapM_ cancel)
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.1.0.3
+Version:        0.1.0.4
 License:        BSD3
 License-file:   LICENSE
 Author:         Michael Snoyman, Erik de Castro Lopo
