We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f52a57 + 0270bd9 commit ad48b5aCopy full SHA for ad48b5a
Library/Homebrew/download_strategy.rb
@@ -468,7 +468,7 @@ def fetch(timeout: nil)
468
# The cached location is no longer fresh if either:
469
# - Last-Modified value is newer than the file's timestamp
470
# - Content-Length value is different than the file's size
471
- if cached_location_valid && (content_type.nil? || !content_type.start_with?("text/"))
+ if cached_location_valid && (!content_type.is_a?(String) || !content_type.start_with?("text/"))
472
if last_modified && last_modified > cached_location.mtime
473
ohai "Ignoring #{cached_location}",
474
"Cached modified time #{cached_location.mtime.iso8601} is before" \
0 commit comments