tests/get-with-headers.py
changeset 1111 df702ad9b314
parent 1106 a02b1025536c
child 1199 b9f44c378e62
--- a/tests/get-with-headers.py	Tue Jun 19 16:00:31 2012 +0100
+++ b/tests/get-with-headers.py	Thu Jun 21 14:04:15 2012 +0100
@@ -21,14 +21,14 @@
 
 tag = None
 def request(host, path, show):
-
+    assert not path.startswith('/'), path
     global tag
     headers = {}
     if tag:
         headers['If-None-Match'] = tag
 
     conn = httplib.HTTPConnection(host)
-    conn.request("GET", path, None, headers)
+    conn.request("GET", '/' + path, None, headers)
     response = conn.getresponse()
     print response.status, reasons.get(response.reason, response.reason)
     for h in [h.lower() for h in show]: