Fix routing docs about "Interacting with the Request and Response Object"
pecan.response.text and pecan.response.status should be written instead of pecan.response.body and pecan.response.status_int Change-Id: Ie3f4011e3f299c77d464308cabfd2245ed01bb9f Closes-Bug: #1332101
This commit is contained in:
@@ -282,8 +282,8 @@ within Pecan controller code::
|
||||
username = pecan.request.POST.get('username')
|
||||
password = pecan.request.POST.get('password')
|
||||
|
||||
pecan.response.status_int = 403
|
||||
pecan.response.body = 'Bad Login!'
|
||||
pecan.response.status = 403
|
||||
pecan.response.text = 'Bad Login!'
|
||||
|
||||
While Pecan abstracts away much of the need to interact with these objects
|
||||
directly, there may be situations where you want to access them, such as:
|
||||
|
||||
Reference in New Issue
Block a user