# File lib/cuba.rb, line 269
  def accept(mimetype)
    lambda do
      accept = String(env["HTTP_ACCEPT"]).split(",")

      if accept.any? { |s| s.strip == mimetype }
        res["Content-Type"] = mimetype
      end
    end
  end