Strip leading slashes from path.

pull/7/head
Ferry Boender 8 years ago
parent d4297938c5
commit 3ce2ad0642
  1. 2
      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):
"""

Loading…
Cancel
Save