From e611a9403c925e373d32db1f8e7c23e402c800a1 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 6 Feb 2020 23:20:06 +0800 Subject: [PATCH] =?UTF-8?q?head=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index bba33bd8e..05823ab46 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -207,6 +207,7 @@ class AttachmentsController < ApplicationController def send_file_with_range(path, options = {}) if File.exist?(path) size = File.size(path) + logger.info("########request.headers: #{request.headers}") if !request.headers["Range"] status_code = 200 # 200 OK offset = 0