aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/models/active_storage
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-02-20 14:45:54 -0500
committerGeorge Claghorn <george@basecamp.com>2018-02-20 14:45:54 -0500
commit9208a52220b51cc747f45f11ccfa1cf0de29e8d7 (patch)
tree0b2d1d4d0524d33c24d5875723213fb71119aec2 /activestorage/app/models/active_storage
parentb7b73de0df1fb2619508c99c5c10a3cab628d48e (diff)
downloadrails-9208a52220b51cc747f45f11ccfa1cf0de29e8d7.tar.gz
rails-9208a52220b51cc747f45f11ccfa1cf0de29e8d7.tar.bz2
rails-9208a52220b51cc747f45f11ccfa1cf0de29e8d7.zip
Correct Range header syntax
Diffstat (limited to 'activestorage/app/models/active_storage')
-rw-r--r--activestorage/app/models/active_storage/identification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/identification.rb b/activestorage/app/models/active_storage/identification.rb
index bf1d8f5624..d4d68fce8d 100644
--- a/activestorage/app/models/active_storage/identification.rb
+++ b/activestorage/app/models/active_storage/identification.rb
@@ -21,7 +21,7 @@ class ActiveStorage::Identification
def identifiable_chunk
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") do |client|
- client.get(uri, "Range" => "0-4096").body
+ client.get(uri, "Range" => "bytes=0-4095").body
end
end