  
  defaultPortForScheme = {'http': 80, 'https':443, 'ftp':21}
  
-@@ -66,9 +66,9 @@
+@@ -66,9 +67,9 @@
              object.
          @type codeOrResponse: C{int} or L{http.Response}
          """

 
     def _error(self, reason):
         if reason.check(error.ConnectionLost):
@@ -471,5 +484,5 @@
 else:
     components.registerAdapter(compat.OldResourceAdapter, resource.IResource, iweb.IOldNevowResource)
 

===================================================================
--- twisted/web2/http.py	(revision 19773)
+++ twisted/web2/http.py	(working copy)
@@ -15,6 +15,7 @@
 import socket
 import time
 import cgi
+import urllib
 
 # twisted imports
 from twisted.internet import interfaces, error
@@ -26,7 +27,7 @@
 from twisted.web2 import http_headers
 from twisted.web2 import iweb
 from twisted.web2 import stream
