Merge pull request #3654 from thelounge/xpaw/fix-ua

Fix url in useragent when fetching releases from github
This commit is contained in:
Pavel Djundik 2020-01-02 10:45:44 +02:00 committed by GitHub
commit 05c69dfb6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ async function fetch() {
const response = await got("https://api.github.com/repos/thelounge/thelounge/releases", { const response = await got("https://api.github.com/repos/thelounge/thelounge/releases", {
headers: { headers: {
Accept: "application/vnd.github.v3.html", // Request rendered markdown 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
}, },
}); });