Handle new Cloudflare challenge. Resolves #135 Resolves #134

This commit is contained in:
ngosang
2021-05-30 13:40:17 +02:00
parent 805a34c9d6
commit c6677f4d84
2 changed files with 19 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ function errorResponse(errorMsg: string, res: ServerResponse, startTimestamp: nu
function successResponse(successMsg: string, extendedProperties: object, res: ServerResponse, startTimestamp: number) {
const endTimestamp = Date.now()
log.info(`Successful response in ${(endTimestamp - startTimestamp) / 1000} s`)
log.info(`Response in ${(endTimestamp - startTimestamp) / 1000} s`)
if (successMsg) { log.info(successMsg) }
const response = Object.assign({