diff options
author | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-02-10 01:06:55 +0000 |
---|---|---|
committer | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-02-10 01:06:55 +0000 |
commit | 3c343cca6b736e43c6145ebdf60aed2cd61b912c (patch) | |
tree | 9c61e2dbd6b17b9066b3bce54cfd5bd600508b48 /lib/mongrel.rb | |
parent | da7ed29332ec86f9dc427c0c784f68c34d2ca7e2 (diff) | |
download | unicorn-3c343cca6b736e43c6145ebdf60aed2cd61b912c.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@23 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel.rb')
-rw-r--r-- | lib/mongrel.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mongrel.rb b/lib/mongrel.rb index 1bc1c23..d8e1b23 100644 --- a/lib/mongrel.rb +++ b/lib/mongrel.rb @@ -452,9 +452,9 @@ module Mongrel # Checks if the given path can be served and returns the full path (or nil if not). def can_serve(path_info) req = File.expand_path(path_info, @path) - if req.index(@path) != 0 or !File.exist? req + if req.index(@path) != 0 or !File.exist? req or (File.directory?(req) and not @listing_allowed) return nil - else + else return req end end |