diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zero/response.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/zero/response.rb b/lib/zero/response.rb index 272e5e2..63441e9 100644 --- a/lib/zero/response.rb +++ b/lib/zero/response.rb @@ -85,10 +85,11 @@ module Zero self.header['Content-Type'] = value end - # Sets the Location header to the given URL and the status code to 302. + # Sets the Location header to the given URL and the status code to + # 303 - See Other. # # @param [String] location Redirect URL - def redirect(location, status = 302) + def redirect(location, status = 303) self.status = status self.header['Location'] = location end |