aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRhys Arkins <[email protected]>2019-05-25 08:19:35 +0200
committerRhys Arkins <[email protected]>2019-05-25 08:19:35 +0200
commit57f49a2fb7c06582709b354f040e512bd46c404b (patch)
tree8fc9c8841924f9facaee62c8fdc7314321205e6c
parent47edd88755850364eefda085ca3d6054b73d25f7 (diff)
downloadrenovate-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.js2
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';