mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
encode user agent in request sent to github to retrieve tags
This commit is contained in:
@@ -13,7 +13,7 @@ var isPrerelease = /^v?\d+\.\d+\.\d+-.+$/;
|
||||
function getLatestVersion(callback) {
|
||||
var headers = {
|
||||
Accept: 'application/vnd.github.v3+json',
|
||||
'User-Agent': 'NodeBB Admin Control Panel/' + meta.config.title,
|
||||
'User-Agent': encodeURIComponent('NodeBB Admin Control Panel/' + meta.config.title),
|
||||
};
|
||||
|
||||
if (versionCacheLastModified) {
|
||||
|
||||
Reference in New Issue
Block a user