tests/get-with-headers.py
changeset 17017 953faba28e91
parent 12250 bd98796c0b6f
child 18380 a4d7fd7ad1f7
--- a/tests/get-with-headers.py	Wed Jun 20 23:41:21 2012 +0200
+++ b/tests/get-with-headers.py	Thu Jun 21 03:05:02 2012 +0200
@@ -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]: