diff --git a/requests/models.py b/requests/models.py index 7ac85cc0..6fdf8bb0 100644 --- a/requests/models.py +++ b/requests/models.py @@ -317,6 +317,9 @@ class Request(object): netloc = netloc.encode('idna').decode('utf-8') + if not path: + path = '/' + if is_py2: if isinstance(path, str): path = path.encode('utf-8')