Fix webob.exc.HTTPForbidden parameter miss
HTTPForbidden should use the parameter 'explanation' instead of 'detail'. This patch fixes this bug. Change-Id: I4c66697daf0ce9e00c8820311dc7141eacd7e733 Closes-Bug: #1283872
This commit is contained in:
parent
6f8a914ccf
commit
dbdc379932
@ -907,7 +907,7 @@ class Application(object):
|
|||||||
res = 'message\n'
|
res = 'message\n'
|
||||||
|
|
||||||
# Option 2: a nicely formatted HTTP exception page
|
# Option 2: a nicely formatted HTTP exception page
|
||||||
res = exc.HTTPForbidden(detail='Nice try')
|
res = exc.HTTPForbidden(explanation='Nice try')
|
||||||
|
|
||||||
# Option 3: a webob Response object (in case you need to play with
|
# Option 3: a webob Response object (in case you need to play with
|
||||||
# headers, or you want to be treated like an iterable, or or or)
|
# headers, or you want to be treated like an iterable, or or or)
|
||||||
|
Loading…
Reference in New Issue
Block a user