From d3d372d6f584393951a0830a16867b48a2df8bb5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 21 Mar 2023 12:19:06 +0000 Subject: [PATCH] download_strategy: use another blank. --- 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 9b671d0a0b..0074b62ec7 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -491,7 +491,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy end end - filename ||= content_disposition.filename + filename = content_disposition.filename if filename.blank? next if filename.blank? # Servers may include '/' in their Content-Disposition filename header. Take only the basename of this, because: