diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # ChangeLog for http-conduit
 
+## 2.3.7.2
+
+* Add the `network3` flag
+
 ## 2.3.7.1
 
 * Properly skip whitespace after JSON body [#401](https://github.com/snoyberg/http-client/issues/401)
diff --git a/http-conduit.cabal b/http-conduit.cabal
--- a/http-conduit.cabal
+++ b/http-conduit.cabal
@@ -1,5 +1,5 @@
 name:            http-conduit
-version:         2.3.7.1
+version:         2.3.7.2
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -65,7 +65,6 @@
                  , utf8-string
                  , case-insensitive
                  , unliftio
-                 , network
                  , wai >= 3.0 && < 3.3
                  , warp >= 3.0.0.2 && < 3.3
                  , wai-conduit
@@ -78,6 +77,15 @@
                  , aeson
                  , temporary
                  , resourcet
+  if flag(network3)
+    build-depends: network >= 3, network-bsd
+  else
+    build-depends: network < 3
+
+flag network3
+  default: False
+  manual: False
+  description: Use network 3 or higher
 
 source-repository head
   type:     git
diff --git a/test/main.hs b/test/main.hs
--- a/test/main.hs
+++ b/test/main.hs
@@ -617,7 +617,7 @@
     ] $
     case pathInfo req of
       [] -> A.encode jsonValue
-      ["trailing"] -> A.encode jsonValue <> "   \n\r\n\t  "
+      ["trailing"] -> L.append (A.encode jsonValue) "   \n\r\n\t  "
       x -> error $ "unsupported: " ++ show x
 
 jsonValue :: A.Value
