Skip to content

Commit

Permalink
don't set Content-Disposition header for formats with player (to avoi…
Browse files Browse the repository at this point in the history
…d triggering downloads of files when hitting refresh)
  • Loading branch information
Ithanil committed Jun 13, 2024
1 parent ed17a63 commit 85003bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/playback_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def deliver_resource
resource_path = request.original_fullpath
static_resource_path = "/static-resource#{resource_path}"
response.headers['X-Accel-Redirect'] = static_resource_path
response.headers['Content-Disposition'] = "attachment"
response.headers['Content-Disposition'] = "attachment" unless %w[presentation, video, screenshare].include?(@playback_format.format)
head(:ok)
end

Expand Down

0 comments on commit 85003bf

Please sign in to comment.