diff --git a/httpd-shed.cabal b/httpd-shed.cabal
--- a/httpd-shed.cabal
+++ b/httpd-shed.cabal
@@ -1,5 +1,5 @@
 Name:           httpd-shed
-Version:        0.4.0.2
+Version:        0.4.0.3
 Cabal-Version:  >= 1.2
 License:        BSD3
 License-File:   LICENSE
@@ -16,11 +16,6 @@
 Build-Type:     Simple
 cabal-version:  >= 1.6
 
-Source-Repository this
-  Tag:         0.4.0.1
-  Type:        git
-  Location:    https://github.com/andygill/httpd-shed/
-
 Source-Repository head
   Type:        git
   Location:    https://github.com/andygill/httpd-shed/
@@ -29,14 +24,22 @@
   Description: Build example executables
   Default:     False
 
+flag network-uri
+   description: Get Network.URI from the network-uri package
+   default: True
+
 Library
+  if flag(network-uri)
+     build-depends: network-uri >= 2.6, network >= 2.6
+  else
+     build-depends: network-uri < 2.6, network < 2.6
   Build-Depends:
-    network >=2.3 && <2.6,
-    base >=4.0 && <5.0
+    network >=2.3     && <2.7,
+    network-uri >=2.5 && <2.7,
+    base >= 4.0 && <5.0
   Ghc-Options: -Wall
   Exposed-modules:
     Network.Shed.Httpd
-
 
 -- Trivial test; we need real tests!
 Executable httpd-shed-test
