fix: #6991, add timeout for version Github request

v1.18.x
Peter Jaszkowiak 6 years ago committed by Julian Lam
parent 33d7735690
commit 43c3bb02e5

@ -23,6 +23,7 @@ function getLatestVersion(callback) {
request('https://api.github.com/repos/NodeBB/NodeBB/tags', {
json: true,
headers: headers,
timeout: 1000,
}, function (err, res, releases) {
if (err) {
return callback(err);

Loading…
Cancel
Save