Fix url in useragent when fetching releases from github

This commit is contained in:
Pavel Djundik 2020-01-01 01:15:45 +02:00
parent 84107ab516
commit 42ee21bfb8

View File

@ -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
},
});