Skip to content

Instantly share code, notes, and snippets.

@EliAndrewC
Last active March 17, 2016 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EliAndrewC/bf59a6eee037e150d1ec to your computer and use it in GitHub Desktop.
Save EliAndrewC/bf59a6eee037e150d1ec to your computer and use it in GitHub Desktop.
Example of CherryPy going into an infinite redirect loop
import cherrypy
class Root(object):
@cherrypy.expose
def index(self):
raise cherrypy.HTTPRedirect('/')
if __name__ == '__main__':
cherrypy.quickstart(Root())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment