From 2500b8dabae2f7411ec5fea004e27569f7eda940 Mon Sep 17 00:00:00 2001 From: Connor Mann <34930543+cnnrmnn@users.noreply.github.com> Date: Fri, 14 May 2021 11:47:38 -0400 Subject: [PATCH] Update Library/Homebrew/utils/curl.rb Co-authored-by: Rylan Polster --- Library/Homebrew/utils/curl.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)