Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove trailing "/" if it exists

  • Loading branch information...
commit f2e15a190bb5b0c3a6bba3baeeee896da43b97a6 1 parent 09208d3
Jędrzej Nowak pigmej authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 CTK/Server.py
4 CTK/Server.py
View
@@ -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.