Commits

Robert Brewer  committed d95194d

New tools.redirect.

  • Participants
  • Parent commits b83d1eb

Comments (0)

Files changed (1)

File cherrypy/_cptools.py

 _d.trailing_slash = Tool('before_handler', cptools.trailing_slash, priority=60)
 _d.flatten = Tool('before_finalize', cptools.flatten)
 _d.accept = Tool('on_start_resource', cptools.accept)
+_d.redirect = Tool('on_start_resource', cptools.redirect)
 
 del _d, cptools, encoding, auth, static, tidy