Skip to content

Commit 0f21314

Browse files
download_strategy: only require content-disposition header
1 parent 5ec756e commit 0f21314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/download_strategy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def resolve_url_basename_time_file_size(url, timeout: nil)
550550
return @resolved_info_cache.fetch(url) if @resolved_info_cache.include?(url)
551551

552552
begin
553-
parsed_output = curl_headers(url.to_s, wanted_headers: ["content-disposition", "content-type"], timeout:)
553+
parsed_output = curl_headers(url.to_s, wanted_headers: ["content-disposition"], timeout:)
554554
rescue ErrorDuringExecution
555555
return [url, parse_basename(url), nil, nil, nil, false]
556556
end

0 commit comments

Comments
 (0)