Skip to content

Commit

Permalink
Send hls with mime_type
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Aug 16, 2023
1 parent 4135669 commit 3a70491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/downloads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a70491

Please sign in to comment.