Commits

Anonymous committed 21e5e88

Fixed small bug in _cphttptools.canonicalizeUrl

  • Participants
  • Parent commits da1cbf4

Comments (0)

Files changed (1)

File cherrypy/_cphttptools.py

                 # browserUrl is request.base
                 newUrl = cpg.request.base + '/' + newUrl
             else:
+                i = cpg.request.browserUrl.rfind('/')
                 newUrl = cpg.request.browserUrl[:i+1] + newUrl
     return newUrl