1. Walt Woods
  2. CherryPy

Commits

Remi Delon  committed 21e5e88

Fixed small bug in _cphttptools.canonicalizeUrl

  • Participants
  • Parent commits da1cbf4
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/_cphttptools.py

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