From 38da4dcac02d70f5518115bf8c2a9f3a5d4e4810 Mon Sep 17 00:00:00 2001 From: Chris Tompkinson Date: Tue, 10 Mar 2020 10:16:25 +0000 Subject: [PATCH] Add headers option to URLs in forumlas --- Library/Homebrew/download_strategy.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 166a1b3340..b08f7c8207 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -423,6 +423,8 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy args += ["--header", meta.fetch(:header)] if meta.key?(:header) + meta.fetch(:headers).each { |h| args += ["--header", h.strip] } if meta.key?(:headers) + args end