diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index eefa0df29f..c9fb1bef64 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -119,7 +119,7 @@ module Utils end def parse_headers(headers) - return {} unless headers + return {} if headers.blank? # Skip status code headers.split("\r\n")[1..].to_h do |h|