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