<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -95,6 +95,8 @@ from common import HttpMessageHandler, \
     linesep, dummy, get_hdr
 from error import ERR_URL, ERR_CONNECT, ERR_LEN_REQ, ERR_READ_TIMEOUT, ERR_HTTP_VERSION
 
+req_remove_hdrs = hop_by_hop_hdrs + ['host']
+
 # TODO: proxy support
 # TODO: next-hop version cache for Expect/Continue, etc.
 
@@ -129,8 +131,7 @@ class Client(HttpMessageHandler):
         &quot;&quot;&quot;
         self._req_body_pause_cb = req_body_pause
         req_hdrs = [i for i in req_hdrs \
-            if not i[0].lower() in hop_by_hop_hdrs ]
-
+            if not i[0].lower() in req_remove_hdrs]
         (scheme, authority, path, query, fragment) = urlsplit(uri)
         if scheme.lower() != 'http':
             self._handle_error(ERR_URL, &quot;Only HTTP URLs are supported&quot;)</diff>
      <filename>src/client.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>95ffdb8780a8152c16b95096af0ed47bb3413d90</id>
    </parent>
  </parents>
  <author>
    <name>Mark Nottingham</name>
    <email>mnot@mnot.net</email>
  </author>
  <url>http://github.com/mnot/nbhttp/commit/a9003718d7bf332513562a85b9fb359cffa52186</url>
  <id>a9003718d7bf332513562a85b9fb359cffa52186</id>
  <committed-date>2009-11-06T09:38:38-08:00</committed-date>
  <authored-date>2009-11-06T09:38:38-08:00</authored-date>
  <message>remove host header if it preexists</message>
  <tree>df57824da9a86bdea782c6e619099f9847b96eb9</tree>
  <committer>
    <name>Mark Nottingham</name>
    <email>mnot@mnot.net</email>
  </committer>
</commit>
