Minor fixes

This commit is contained in:
Julian Reinhardt
2021-10-31 13:41:29 +01:00
parent c86a1a50bd
commit 9efe6cfb39
4 changed files with 8 additions and 2 deletions

View File

@ -1180,10 +1180,13 @@ const internalCertificate = {
} else if (`${result.responsecode}` === '200' && result.htmlresponse === 'Success') {
// Server exists and has responded with the correct data
return 'ok';
} else if (`${result.responsecode}` === '200') {
// Server exists and has responded with the correct data
return 'wrong-data';
} else if (`${result.responsecode}` === '404') {
// Server exists but responded with a 404
return '404';
} else if (`${result.responsecode}` === '0' || result.reason.toLowerCase() === 'host unavailable') {
} else if (`${result.responsecode}` === '0' || (typeof result.reason === 'string' && result.reason.toLowerCase() === 'host unavailable')) {
// Server does not exist at domain
return 'no-host';
} else {