diff --git a/app/controllers/tracks_controller.rb b/app/controllers/tracks_controller.rb index a54184b3..b675bff4 100644 --- a/app/controllers/tracks_controller.rb +++ b/app/controllers/tracks_controller.rb @@ -116,6 +116,7 @@ def audio_with_stream(stream, mimetype, total_size) response.content_type = mimetype response.headers['accept-ranges'] = 'bytes' response.headers['content-length'] = (last_byte - first_byte + 1).to_s + response.commit! to_skip = first_byte while to_skip.positive?