Add headers option to URLs in forumlas

This commit is contained in:
Chris Tompkinson 2020-03-10 10:16:25 +00:00
parent b6812d2dfb
commit 38da4dcac0

View File

@ -423,6 +423,8 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
args += ["--header", meta.fetch(:header)] if meta.key?(:header) args += ["--header", meta.fetch(:header)] if meta.key?(:header)
meta.fetch(:headers).each { |h| args += ["--header", h.strip] } if meta.key?(:headers)
args args
end end