update
This commit is contained in:
+8
-4
@@ -65,14 +65,18 @@ export class SmartWhois {
|
||||
}
|
||||
|
||||
// lets test http response
|
||||
const httpResult = await plugins.smartrequest.safeGet(`http://${domainArg}/`);
|
||||
const httpResult = await plugins.smartrequest.SmartRequest.create()
|
||||
.url(`http://${domainArg}/`)
|
||||
.get();
|
||||
|
||||
// lets test https response
|
||||
const httpsResult = await plugins.smartrequest.safeGet(`https://${domainArg}/`);
|
||||
const httpsResult = await plugins.smartrequest.SmartRequest.create()
|
||||
.url(`https://${domainArg}/`)
|
||||
.get();
|
||||
|
||||
return {
|
||||
httpStatus: httpResult.statusCode,
|
||||
httpsStatus: httpsResult.statusCode,
|
||||
httpStatus: httpResult.status,
|
||||
httpsStatus: httpsResult.status,
|
||||
httpHeaders: httpResult.headers,
|
||||
httpsHeaders: httpsResult.headers,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user