Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #522 (defect)

Opened 2 years ago

Last modified 2 years ago

redirect documentation doesn't talk about status code

Status: closed (fixed)

Reported by: jvanasco@gmail.com Assigned to: rdelon
Priority: normal Milestone:
Component: CherryPy documentation Keywords:
Cc:

There's a lot of stuff in _cperror.py that should be in the docs ,

ie:

a- HTTPRedirect accepts a list of urls and statuscode

___init__(self, urls, statuscode ):

b- it defaults to a 302 or 303 based on the response version

        # RFC 2616 indicates a 301 response code fits our goal; however,
        # browser support for 301 is quite messy. Do 302 instead. See
        # http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html

and

            if cherrypy.response.version >= "1.1":
                status = 303
            else:
                status = 302

Change History

06/30/06 00:11:08: Modified by fumanchu

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1178].

Hosted by WebFaction

Log in as guest/cpguest to create tickets