set_content_disposition (MIME::Headers::MIME)

    # File lib/mime/headers/mime.rb, line 99
          def set_content_disposition type, params = {}
            disposition = type

            if params['filename']
              params['filename'] = File.basename(params['filename'])
            elsif self.respond_to?(:path)
              params['filename'] = File.basename(self.path)
            end

            params.each do |name, value|
              disposition << %Q[; #{name}="#{value}"]  if value
            end

            self.content_disposition = disposition
          end