module Travis::Api::App::Responders
  class Badge < Image
    def format
      'svg'
    end

    def apply
      set_headers
      send_file(filename, type: :svg, last_modified: last_modified)
    end

    def content_type
      "image/svg"
    end

    def filename
      "#{root}/public/images/result/#{result}.svg"
    end
  end
end

module Travis::Api::App::Responders
  class Badge < Image
    def format
      'svg'
    end

    def apply
      set_headers
      send_file(filename, type: :svg, last_modified: last_modified)
    end

    def content_type
      "image/svg+xml"
    end

    def filename
      "#{root}/public/images/result/#{result}.svg"
    end
  end
end

Return right mime type for SVG.
Return right mime type for SVG.
