1. cherrypy
  2. CherryPy


Remi Delon  committed c7a471c

Fixed bug in httptools.redirect

  • Participants
  • Parent commits 1acada9
  • Branches cherrypy

Comments (0)

Files changed (1)

File lib/httptools.py

View file
  • Ignore whitespace
 def canonicalizeUrl(url):
     """ Canonicalize a URL. The URL might be relative, absolute or canonical """
-    return urlparse.urljoin(cpg.request.base, url)
+    return urlparse.urljoin(cpg.request.browserUrl, url)
 def redirect(url):
     """ Sends a redirect to the browser (after canonicalizing the URL) """