Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4 from pigmej/master

Added removal of tailing '/' if exists
  • Loading branch information...
commit 0af6bc8849c6d39d15d3882ed3e35237ce96c45e 2 parents 09208d3 + f2e15a1
@skinkie skinkie authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 CTK/Server.py
View
4 CTK/Server.py
@@ -122,7 +122,9 @@ def _do_handle (self):
my_thread.scgi_conn = self
my_thread.request_url = url
- base_path = urlparse.urlsplit(url).path
+ base_path = urlparse.urlsplit(url).path
+ if len(base_path) > 1 and base_path[-1] == '/':
+ base_path = base_path[:-1] # remove trailing '/' if it exists
for published in server._web_paths:
if re.match (published._regex, base_path):
Please sign in to comment.
Something went wrong with that request. Please try again.