mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
download_strategy: use blank.
This commit is contained in:
parent
f197f164c8
commit
fd0b3e8035
@ -492,7 +492,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
filename ||= content_disposition.filename
|
filename ||= content_disposition.filename
|
||||||
next if filename.nil?
|
next if filename.blank?
|
||||||
|
|
||||||
# Servers may include '/' in their Content-Disposition filename header. Take only the basename of this, because:
|
# Servers may include '/' in their Content-Disposition filename header. Take only the basename of this, because:
|
||||||
# - Unpacking code assumes this is a single file - not something living in a subdirectory.
|
# - Unpacking code assumes this is a single file - not something living in a subdirectory.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user