# File lib/mongrel.rb, line 532
532:     def send_file(req, response)
533:       response.start(200) do |head,out|
534:         # set the mime type from our map based on the ending
535:         dot_at = req.rindex(".")
536:         if dot_at
537:           ext = req[dot_at .. -1]
538:           if MIME_TYPES[ext]
539:             head['Content-Type'] = MIME_TYPES[ext]
540:           end
541:         end
542: 
543:         open(req, "r") do |f|
544:           out.write(f.read)
545:         end
546:       end
547:     end