Update Library/Homebrew/utils/curl.rb

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
Connor Mann 2021-05-14 11:47:38 -04:00 committed by GitHub
parent ecaaafba20
commit 2500b8daba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)