From 42ee21bfb892dfb6f1c3b9e768cf10308975e958 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 1 Jan 2020 01:15:45 +0200 Subject: [PATCH] Fix url in useragent when fetching releases from github --- src/plugins/changelog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/changelog.js b/src/plugins/changelog.js index 83471531..0ae90222 100644 --- a/src/plugins/changelog.js +++ b/src/plugins/changelog.js @@ -26,7 +26,7 @@ async function fetch() { const response = await got("https://api.github.com/repos/thelounge/thelounge/releases", { headers: { Accept: "application/vnd.github.v3.html", // Request rendered markdown - "User-Agent": pkg.name + "; +" + pkg.repository.git, // Identify the client + "User-Agent": pkg.name + "; +" + pkg.repository.url, // Identify the client }, });