|
|
@ -16,6 +16,7 @@ const { CacheableDnsHttpAgent } = require("../cacheable-dns-http-agent");
|
|
|
|
const { DockerHost } = require("../docker");
|
|
|
|
const { DockerHost } = require("../docker");
|
|
|
|
const Maintenance = require("./maintenance");
|
|
|
|
const Maintenance = require("./maintenance");
|
|
|
|
const { UptimeCacheList } = require("../uptime-cache-list");
|
|
|
|
const { UptimeCacheList } = require("../uptime-cache-list");
|
|
|
|
|
|
|
|
const zlib = require("zlib");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* status:
|
|
|
|
* status:
|
|
|
@ -283,7 +284,6 @@ class Monitor extends BeanModel {
|
|
|
|
...(this.headers ? JSON.parse(this.headers) : {}),
|
|
|
|
...(this.headers ? JSON.parse(this.headers) : {}),
|
|
|
|
...(basicAuthHeader),
|
|
|
|
...(basicAuthHeader),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
decompress: true,
|
|
|
|
|
|
|
|
maxRedirects: this.maxredirects,
|
|
|
|
maxRedirects: this.maxredirects,
|
|
|
|
validateStatus: (status) => {
|
|
|
|
validateStatus: (status) => {
|
|
|
|
return checkStatusCode(status, this.getAcceptedStatuscodes());
|
|
|
|
return checkStatusCode(status, this.getAcceptedStatuscodes());
|
|
|
|