[PATCH] mapPathToObject should remove a trailing /, not just add it!
Observe _cphttptools.py, method mapPathToObject..
If the request path was "/foo/bar" and "bar" has an index() method, then we will be redirected to "/foo/bar/". Good!
But if the request path was "/foo/bar/" and "bar" DOESN'T have an index() method, then we WON'T be redirected to "/foo/bar". Bad!
So I propose that for objects without an index method, to be redirected to the location with the trailing / removed! This will have the nice effect of ensuring that relative URLs don't break if people decide to go to the URL with a /!
(urls like "/foo/bar/?apple=orange" should also be fixed to "/foo/bar?apple=orange"