Skip to content

Commit

Permalink
Apparently the header casing matters
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Jun 21, 2022
1 parent 060652a commit 4326870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tracks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def audio_with_stream(stream, mimetype, total_size)
response.headers['content-length'] = (last_byte - first_byte + 1).to_s
# Workaround for https://github.com/rack/rack/issues/1619
# Remove when rack 3.0 is released
response.headers['last-modified'] = Time.now.httpdate
response.headers['Last-Modified'] = Time.now.httpdate

to_skip = first_byte
while to_skip.positive?
Expand Down

0 comments on commit 4326870

Please sign in to comment.