--- 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]: