Unverified Commit bd508b16 authored by Raccoon's avatar Raccoon Committed by BoHong Li
Browse files

Update lib/web/middleware/checkVersion.js


Signed-off-by: default avatarBoHong Li <raccoon@hackmd.io>
parent b49a4e24
...@@ -31,7 +31,7 @@ async function checkVersion (ctx) { ...@@ -31,7 +31,7 @@ async function checkVersion (ctx) {
url: `${VERSION_CHECK_ENDPOINT}?v=${config.version}`, url: `${VERSION_CHECK_ENDPOINT}?v=${config.version}`,
method: 'GET', method: 'GET',
json: true, json: true,
timeout: 1000 timeout: 3000
}) })
if (statusCode !== 200 || data.status === 'error') { if (statusCode !== 200 || data.status === 'error') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment