Fix url in useragent when fetching releases from github
This commit is contained in:
parent
84107ab516
commit
42ee21bfb8
@ -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
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user