1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Undocument send_blob_byte_range_data, don't commit to a public API just yet

This commit is contained in:
Kasper Timm Hansen 2021-08-16 15:16:54 +02:00
parent fe4ec2ac0c
commit 7faf8a0fe3
No known key found for this signature in database
GPG key ID: 191153215EDA53D8

View file

@ -10,7 +10,7 @@ module ActiveStorage::Streaming
private
# Stream the blob in byte ranges specified through the header
def send_blob_byte_range_data(blob, range_header, disposition: nil) #:doc:
def send_blob_byte_range_data(blob, range_header, disposition: nil)
ranges = Rack::Utils.get_byte_ranges(range_header, blob.byte_size)
return head(:range_not_satisfiable) if ranges.blank? || ranges.all?(&:blank?)