Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/b0cce6dbdea49dfbc2f1b60e4d89c02bffbe44b4 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Merge pull request from benphelps/ping-fallback

Change: Add fallback to http GET for ping
pull/594/head
shamoon 2 years ago committed by GitHub
commit b0cce6dbde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,11 +15,18 @@ export default async function handler(req, res) {
});
}
const startTime = performance.now();
const [status] = await httpProxy(pingURL, {
let startTime = performance.now();
let [status] = await httpProxy(pingURL, {
method: "HEAD"
});
const endTime = performance.now();
let endTime = performance.now();
if (status >= 400 && status < 500) {
// try one more time as a GET in case HEAD is rejected for whatever reason
startTime = performance.now();
[status] = await httpProxy(pingURL);
endTime = performance.now();
}
return res.status(200).json({
status,

Loading…
Cancel
Save