Robert Brewer committed 8cf389d

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

Comments (0)

Files changed (1)


     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]