Skip to content

Commit

Permalink
fix #redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Feb 19, 2011
1 parent a64d082 commit 8181146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def redirect(uri, *args)

# According to RFC 2616 section 14.30, "the field value consists of a
# single absolute URI"
response['Location'] = url(uri, absolute_redirects?, settings.prefixed_redirects?)
response['Location'] = url(uri, settings.absolute_redirects?, settings.prefixed_redirects?)
halt(*args)
end

Expand Down

0 comments on commit 8181146

Please sign in to comment.