From 0f2131484d066ae6cfcc2ea05e4e2f94a1c4fcd1 Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Mon, 7 Jul 2025 11:50:54 -0400 Subject: [PATCH] download_strategy: only require content-disposition header --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index a9863b59be..2b5f46217a 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -550,7 +550,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy return @resolved_info_cache.fetch(url) if @resolved_info_cache.include?(url) begin - parsed_output = curl_headers(url.to_s, wanted_headers: ["content-disposition", "content-type"], timeout:) + parsed_output = curl_headers(url.to_s, wanted_headers: ["content-disposition"], timeout:) rescue ErrorDuringExecution return [url, parse_basename(url), nil, nil, nil, false] end