diff options
author | Jeremy Evans <code@jeremyevans.net> | 2022-05-10 10:45:31 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2022-05-25 08:33:11 -0700 |
commit | 85c80e0b7aa0ce8c5b941cdb2102e91a79f86ce0 (patch) | |
tree | 814d1c876334dab8a7fe209cd934771fb1d1ba19 | |
parent | 862006023952583c26901998a4ae64431922e0fa (diff) | |
download | rack-85c80e0b7aa0ce8c5b941cdb2102e91a79f86ce0.tar.gz |
Remove unnecessary conditional in rack/files.rb
Conditional immediately preceding this checks for ranges.empty?, and if it isn't empty, it definitely has a size greater than or equal to 1.
-rw-r--r-- | lib/rack/files.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/files.rb b/lib/rack/files.rb index f0b0dce4..5b8353f5 100644 --- a/lib/rack/files.rb +++ b/lib/rack/files.rb @@ -91,7 +91,7 @@ module Rack response = fail(416, "Byte range unsatisfiable") response[1]["content-range"] = "bytes */#{size}" return response - elsif ranges.size >= 1 + else # Partial content partial_content = true |