Update Library/Homebrew/download_strategy.rb

Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Chris Tompkinson 2020-03-18 14:29:36 +00:00 committed by GitHub
parent 0f10d7ba40
commit 6d5e37654e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,8 +421,6 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
args += ["--user", meta.fetch(:user)] if meta.key?(:user)
args += ["--header", meta.fetch(:header)] if meta.key?(:header)
args += [meta[:header], meta[:headers]].compact.flatten.flat_map { |h| ["--header", h.strip] }
args