Update Library/Homebrew/utils/curl.rb
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
parent
ecaaafba20
commit
2500b8daba
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user