Skip to content

Commit 02bade4

Browse files
committed
Yet another index servlet redirection fix
1 parent a7dd7ae commit 02bade4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WebKit/Examples/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class index(HTTPServlet):
66
def respond(self, trans):
77
extraPath = trans.request().extraURLPath()
88
path = trans.request().urlPath()
9-
if path.endswith(extraPath):
9+
if extraPath and path.endswith(extraPath):
1010
path = path[:-len(extraPath)]
1111
if not path.endswith('Welcome'):
1212
path = path.rpartition('/')[0] + '/Welcome' + extraPath

0 commit comments

Comments
 (0)