Check for key explicitly with key?
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
parent
b546960da9
commit
2a9540b3ab
@ -138,7 +138,7 @@ module Utils
|
|||||||
|
|
||||||
# Any value for `accept-ranges` other than none indicates that the server supports partial requests.
|
# Any value for `accept-ranges` other than none indicates that the server supports partial requests.
|
||||||
# Its absence indicates no support.
|
# Its absence indicates no support.
|
||||||
supports_partial = headers["accept-ranges"] && headers["accept-ranges"] != "none"
|
supports_partial = headers.key? "accept-ranges" && headers["accept-ranges"] != "none"
|
||||||
|
|
||||||
if supports_partial &&
|
if supports_partial &&
|
||||||
destination.exist? &&
|
destination.exist? &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user