about summary refs log tree commit homepage
path: root/lib/unicorn/app/old_rails/static.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-07 02:20:18 +0000
committerEric Wong <normalperson@yhbt.net>2009-12-06 18:21:33 -0800
commite8dd3e13b9a9f548a3138debd09e87fbb69e3998 (patch)
tree1a364fe5d6d946fc1ad70e2cb88fe4f02c634c48 /lib/unicorn/app/old_rails/static.rb
parent65c051d3254f6a7318cbb1ffc319b6ad5eef2f8c (diff)
downloadunicorn-e8dd3e13b9a9f548a3138debd09e87fbb69e3998.tar.gz
This is allowed according to RFC 2396, section 3.3 and matches
the behavior of URI.parse, as well.
Diffstat (limited to 'lib/unicorn/app/old_rails/static.rb')
-rw-r--r--lib/unicorn/app/old_rails/static.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/unicorn/app/old_rails/static.rb b/lib/unicorn/app/old_rails/static.rb
index 82f8aa5..13a435e 100644
--- a/lib/unicorn/app/old_rails/static.rb
+++ b/lib/unicorn/app/old_rails/static.rb
@@ -46,11 +46,7 @@ class Unicorn::App::OldRails::Static < Struct.new(:app, :root, :file_server)
     end
 
     # then try the cached version:
-
-    # grab the semi-colon REST operator used by old versions of Rails
-    # this is the reason we didn't just copy the new Rails::Rack::Static
-    env[REQUEST_URI] =~ /^#{Regexp.escape(path_info)}(;[^\?]+)/
-    path_info << "#$1#{ActionController::Base.page_cache_extension}"
+    path_info << ActionController::Base.page_cache_extension
 
     if File.file?("#{root}/#{::Rack::Utils.unescape(path_info)}")
       env[PATH_INFO] = path_info