Skip to content

Commit 3a70491

Browse files
committed
Send hls with mime_type
1 parent 4135669 commit 3a70491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/downloads_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def send_hls
3434
playlist.items.each do |item|
3535
item.segment = "#{item.segment}?auth_token=#{params[:auth_token]}"
3636
end
37-
render plain: playlist.to_s
37+
send_data(playlist.to_s, type: "application/x-mpegurl", disposition: :inline)
3838
end
3939

4040
def send_fgdc

0 commit comments

Comments
 (0)