We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7dd7ae commit 02bade4Copy full SHA for 02bade4
1 file changed
WebKit/Examples/index.py
@@ -6,7 +6,7 @@ class index(HTTPServlet):
6
def respond(self, trans):
7
extraPath = trans.request().extraURLPath()
8
path = trans.request().urlPath()
9
- if path.endswith(extraPath):
+ if extraPath and path.endswith(extraPath):
10
path = path[:-len(extraPath)]
11
if not path.endswith('Welcome'):
12
path = path.rpartition('/')[0] + '/Welcome' + extraPath
0 commit comments