Robert Brewer  committed 8cf389d

Fix for #1063 (cherrypy.url() recurses infinitely when is set true and doens't equal 'server')

  • Participants
  • Parent commits 03e7802

Comments (0)

Files changed (1)

File cherrypy/

     elif relative:
         # "A relative reference that does not begin with a scheme name
         # or a slash character is termed a relative-path reference."
-        old = url().split('/')[:-1]
+        old = url(relative=False).split('/')[:-1]
         new = newurl.split('/')
         while old and new:
             a, b = old[0], new[0]