diff options
author | Rhys Arkins <[email protected]> | 2019-05-25 08:19:35 +0200 |
---|---|---|
committer | Rhys Arkins <[email protected]> | 2019-05-25 08:19:35 +0200 |
commit | 57f49a2fb7c06582709b354f040e512bd46c404b (patch) | |
tree | 8fc9c8841924f9facaee62c8fdc7314321205e6c | |
parent | 47edd88755850364eefda085ca3d6054b73d25f7 (diff) | |
download | renovate-18.0.4.tar.gz renovate-18.0.4.zip |
fix(packagist): check for opts.auth18.0.4
-rw-r--r-- | lib/datasource/packagist/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/datasource/packagist/index.js b/lib/datasource/packagist/index.js index 029e621b457..34d94ed1146 100644 --- a/lib/datasource/packagist/index.js +++ b/lib/datasource/packagist/index.js @@ -73,7 +73,7 @@ async function getPackagistFile(regUrl, file) { const { key, sha256 } = file; const fileName = key.replace('%hash%', sha256); const opts = getHostOpts(regUrl); - if (opts.headers && opts.headers.Authorization) { + if (opts.auth || (opts.headers && opts.headers.Authorization)) { return (await got(regUrl + '/' + fileName, opts)).body; } const cacheNamespace = 'datasource-packagist-files'; |