From 0c024c48a8845eb2b00b18ce754dc7b279260785 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Wed, 18 Dec 2013 23:51:51 -0800 Subject: [PATCH] docs response: fix redirect for correctness do we want to check if the body is already set? --- docs/api/response.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/response.md b/docs/api/response.md index 8f7eef6..a4978f4 100644 --- a/docs/api/response.md +++ b/docs/api/response.md @@ -202,8 +202,8 @@ this.redirect('/login'); this.redirect('http://google.com'); ``` - To alter the default status of `302` or the response - body simply assign before and re-assign after this call: + To alter the default status of `302`, simply assign the status + before or after this call. To alter the body, assign it after this call: ```js this.status = 301;