diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 04b9491f95..eefa0df29f 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -122,7 +122,10 @@ module Utils return {} unless headers # Skip status code - headers.split("\r\n")[1..].to_h { |h| h.split(": ") } + headers.split("\r\n")[1..].to_h do |h| + name, content = h.split(": ") + [name.downcase, content] + end end def curl_download(*args, to: nil, try_partial: true, **options)