download_strategy: use another blank.

This commit is contained in:
Mike McQuaid 2023-03-21 12:19:06 +00:00 committed by GitHub
parent fd0b3e8035
commit d3d372d6f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -491,7 +491,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
end end
end end
filename ||= content_disposition.filename filename = content_disposition.filename if filename.blank?
next if filename.blank? 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: