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:
parent
fe4ec2ac0c
commit
7faf8a0fe3
1 changed files with 1 additions and 1 deletions
|
@ -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?)
|
||||
|
|
Loading…
Reference in a new issue