From 3ce2ad06420e1d2a116f04c8684db1d38c62b62f Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Wed, 11 Jan 2017 09:48:39 +0100 Subject: [PATCH] Strip leading slashes from path. --- src/webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webserver.py b/src/webserver.py index d0d0dc2..276754a 100644 --- a/src/webserver.py +++ b/src/webserver.py @@ -46,7 +46,7 @@ class RequestHandler(BaseHTTPRequestHandler): """ Handle a GET request. """ - self._call(*self._parse(self.path)) + self._call(*self._parse(self.path.lstrip('/'))) def do_POST(self): """