diff options
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 |