mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
chomp the pagecache lookup
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@652 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
b2afd258c0
commit
c54ec40a59
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ module Mongrel
|
|||
if response.socket.closed?
|
||||
return
|
||||
end
|
||||
path_info = request.params[Mongrel::Const::PATH_INFO]
|
||||
path_info = request.params[Mongrel::Const::PATH_INFO].chomp("/")
|
||||
path_info << $1 if request.params[Mongrel::Const::REQUEST_URI] =~ /^#{Regexp.escape path_info}(;[^\?]+)/
|
||||
page_cached = path_info + ActionController::Base.page_cache_extension
|
||||
get_or_head = @@file_only_methods.include? request.params[Mongrel::Const::REQUEST_METHOD]
|
||||
|
|
Loading…
Add table
Reference in a new issue