From a771600414e6510db4b514bb62fadb3e98dc9ab6 Mon Sep 17 00:00:00 2001 From: Eliot Jordan Date: Wed, 16 Aug 2023 16:35:22 -0500 Subject: [PATCH] Send hls with mime_type --- app/controllers/downloads_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/downloads_controller.rb b/app/controllers/downloads_controller.rb index d28850fd37..4172377e1a 100644 --- a/app/controllers/downloads_controller.rb +++ b/app/controllers/downloads_controller.rb @@ -34,7 +34,7 @@ def send_hls playlist.items.each do |item| item.segment = "#{item.segment}?auth_token=#{params[:auth_token]}" end - render plain: playlist.to_s + send_data(playlist.to_s, type: "application/x-mpegurl", disposition: :inline) end def send_fgdc