From b60da7b70f04bae1c212b7624393027cf1f4908f Mon Sep 17 00:00:00 2001 From: zedshaw Date: Sat, 25 Nov 2006 02:48:29 +0000 Subject: Bug with default content-type not set for things without endings. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@412 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel/handlers.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7