Fix curl --user flag being broken in dc5a2c17

This commit is contained in:
Camden Narzt 2017-08-21 10:51:19 -06:00
parent 85fd43d4fe
commit c53af2952e
No known key found for this signature in database
GPG Key ID: E349304DE45D816B

View File

@ -381,7 +381,7 @@ class CurlDownloadStrategy < AbstractFileDownloadStrategy
# Curl options to be always passed to curl,
# with raw head calls (`curl --head`) or with actual `fetch`.
def _curl_opts
return ["--user" << meta.fetch(:user)] if meta.key?(:user)
return ["--user", meta.fetch(:user)] if meta.key?(:user)
[]
end