Assume "/" as the Request-URI for printing when none present.

This commit is contained in:
Jakub Roztocil committed 2012-03-14 19:30:12 +01:00
1 parent 6a1f0248e1
commit ccbea8c96e
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ def make_request_message(request):
return HTTPMessage(
line='{method} {path} HTTP/1.1'.format(
method=request.method,
path=url.path),
path=url.path or '/'),
headers='\n'.join('%s: %s' % (name, value)
for name, value
in request_headers.iteritems()),