Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix abort doc regarding redirect.

branch : trunk
  • Loading branch information...
commit 36baabecf43ebc8db22d6aeb2032e11a247f0307 1 parent fbb0469
Ben Bangert bbangert authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 pylons/controllers/
5 pylons/controllers/
@@ -259,9 +259,8 @@ def forward(wsgi_app):
def abort(status_code=None, detail="", headers=None, comment=None):
"""Aborts the request immediately by returning an HTTP exception
- In the event that the status_code is a 300 series error, the detail
- attribute will be used as the Location header should one not be
- specified in the headers attribute.
+ For 300 series, a headers dict will need to be supplied with the
+ appropriate 'Location' set for the redirect.
exc = status_map[status_code](detail=detail, headers=headers,
Please sign in to comment.
Something went wrong with that request. Please try again.