mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #6991, add timeout for version Github request
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user