Add headers option to URLs in forumlas
This commit is contained in:
		
							parent
							
								
									b6812d2dfb
								
							
						
					
					
						commit
						38da4dcac0
					
				@ -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
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user