Browse files

Fix abort doc regarding redirect.

--HG--
branch : trunk
  • Loading branch information...
1 parent fbb0469 commit 36baabecf43ebc8db22d6aeb2032e11a247f0307 @bbangert bbangert committed Dec 18, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 pylons/controllers/util.py
View
5 pylons/controllers/util.py
@@ -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,

0 comments on commit 36baabe

Please sign in to comment.