Fix Rubocop offenses
This commit is contained in:
@ -34,7 +34,7 @@ class LiveStreamsController < ApplicationController
|
||||
def send_runner_file(runner, desired_file, redirect_fallback = root_path, privileged: false)
|
||||
filename = File.basename(desired_file)
|
||||
send_stream(filename:, type: 'application/octet-stream', disposition: 'attachment') do |stream|
|
||||
runner.download_file desired_file, privileged_execution: privileged do |chunk, overall_size, _content_type|
|
||||
runner.download_file(desired_file, privileged_execution: privileged) do |chunk, overall_size, _content_type|
|
||||
unless response.committed?
|
||||
# Disable Rack::ETag, which would otherwise cause the response to be cached
|
||||
# See https://github.com/rack/rack/issues/1619#issuecomment-848460528
|
||||
|
Reference in New Issue
Block a user