From 9e68757d50e7731605e2f58fb375a6c520853a08 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 14 May 2019 10:25:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/zipdown_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/zipdown_controller.rb b/app/controllers/zipdown_controller.rb index 03a5b218..2f01c494 100644 --- a/app/controllers/zipdown_controller.rb +++ b/app/controllers/zipdown_controller.rb @@ -20,10 +20,8 @@ class ZipdownController < ApplicationController begin if params[:base64file] file = decode64(params[:base64file]) - Rails.logger.info("##################detect_content_type: #{detect_content_type(file)}") send_file "#{OUTPUT_FOLDER}/#{file}", :filename => filename_for_content_disposition(file), :type => detect_content_type(file) else - Rails.logger.info("##################detect_content_type: #{detect_content_type(params[:file])}") send_file "#{OUTPUT_FOLDER}/#{params[:file]}", :filename => filename_for_content_disposition(params[:filename]), :type => detect_content_type(params[:file]) end rescue => e