diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zero/response.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zero/response.rb b/lib/zero/response.rb index a3e1651..15fb8c7 100644 --- a/lib/zero/response.rb +++ b/lib/zero/response.rb @@ -71,8 +71,8 @@ module Zero # # @param [String] location Redirect URL # - def redirect(location) - self.status = 302 + def redirect(location, status = 302) + self.status = status self.header['Location'] = location end |