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