diff options
author | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-11-25 02:48:29 +0000 |
---|---|---|
committer | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-11-25 02:48:29 +0000 |
commit | b60da7b70f04bae1c212b7624393027cf1f4908f (patch) | |
tree | 093dd2b6d26cf61935671e29ee96b5f0611867c0 /lib | |
parent | ace16f96887c0ee3405c8b2e0d06660c9ab5e7f3 (diff) | |
download | unicorn-b60da7b70f04bae1c212b7624393027cf1f4908f.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@412 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mongrel/handlers.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mongrel/handlers.rb b/lib/mongrel/handlers.rb index c915bfc..b7a3031 100644 --- a/lib/mongrel/handlers.rb +++ b/lib/mongrel/handlers.rb @@ -229,6 +229,8 @@ module Mongrel dot_at = req_path.rindex('.') if dot_at header[Const::CONTENT_TYPE] = MIME_TYPES[req_path[dot_at .. -1]] || @default_content_type + else + header[Const::CONTENT_TYPE] = @default_content_type end # send a status with out content length |