From 53813e97b9f5a3aa35c5588e98df2edf64422057 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 18 Oct 2018 05:04:19 +0200
Subject: [PATCH] fix(packagist): do proper url join

---
 lib/datasource/packagist.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/datasource/packagist.js b/lib/datasource/packagist.js
index 7488f5e8e8..c2c2e3423a 100644
--- a/lib/datasource/packagist.js
+++ b/lib/datasource/packagist.js
@@ -23,7 +23,8 @@ function authGot(url) {
 
 async function getRegistryMeta(regUrl) {
   try {
-    const res = (await authGot(regUrl + '/packages.json')).body;
+    const url = URL.resolve(regUrl, 'packages.json');
+    const res = (await authGot(url)).body;
     const meta = {};
     meta.packages = res.packages;
     if (res.includes) {
-- 
GitLab