diff options
Diffstat (limited to 'netlib/http/request.py')
-rw-r--r-- | netlib/http/request.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/netlib/http/request.py b/netlib/http/request.py index 99662732..1a9b6f18 100644 --- a/netlib/http/request.py +++ b/netlib/http/request.py @@ -147,7 +147,10 @@ class Request(Message): HTTP request path, e.g. "/index.html". Guaranteed to start with a slash. """ - return _native(self.data.path) + if self.data.path is None: + return None + else: + return _native(self.data.path) @path.setter def path(self, path): |