diff options
-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'; |