1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

its actually the rest_operator

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@654 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
evanweaver 2007-10-15 18:27:15 +00:00
parent 49de1a2f6a
commit 1780a02103

View file

@ -52,10 +52,10 @@ module Mongrel
return if response.socket.closed?
path_info = request.params[Mongrel::Const::PATH_INFO]
query_string = request.params[Mongrel::Const::REQUEST_URI][/^#{Regexp.escape path_info}(;[^\?]+)/, 1].to_s
rest_operator = request.params[Mongrel::Const::REQUEST_URI][/^#{Regexp.escape path_info}(;[^\?]+)/, 1].to_s
path_info.chomp!("/")
page_cached = path_info + query_string + ActionController::Base.page_cache_extension
page_cached = path_info + rest_operator + ActionController::Base.page_cache_extension
get_or_head = @@file_only_methods.include? request.params[Mongrel::Const::REQUEST_METHOD]
if get_or_head and @files.can_serve(path_info)