diff options
author | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-05-23 03:42:37 +0000 |
---|---|---|
committer | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-05-23 03:42:37 +0000 |
commit | 4905d82fc0f96a79f2d3a5d9eaf93c1112684d7c (patch) | |
tree | 79d5d0ae34278d587518c6452804531ec569b065 /lib/mongrel/rails.rb | |
parent | 3843f96fb430880a7d6d0cd75b72940be3675d7c (diff) | |
download | unicorn-4905d82fc0f96a79f2d3a5d9eaf93c1112684d7c.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@205 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel/rails.rb')
-rw-r--r-- | lib/mongrel/rails.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mongrel/rails.rb b/lib/mongrel/rails.rb index 6bc3b2d..8ebd76d 100644 --- a/lib/mongrel/rails.rb +++ b/lib/mongrel/rails.rb @@ -21,8 +21,6 @@ require 'cgi' module Mongrel module Rails - - # Implements a handler that can run Rails and serve files out of the # Rails application's public directory. This lets you run your Rails # application with Mongrel during development and testing, then use it @@ -65,7 +63,7 @@ module Mongrel return if response.socket.closed? path_info = request.params[Mongrel::Const::PATH_INFO] - page_cached = request.params[Mongrel::Const::PATH_INFO] + ".html" + page_cached = path_info + ".html" if @files.can_serve(path_info) # File exists as-is so serve it up |