|
|
@ -447,7 +447,6 @@ class Monitor extends BeanModel {
|
|
|
|
timeout: this.timeout * 1000,
|
|
|
|
timeout: this.timeout * 1000,
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
|
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
|
|
|
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
|
|
|
"User-Agent": "Uptime-Kuma/" + version,
|
|
|
|
|
|
|
|
...(contentType ? { "Content-Type": contentType } : {}),
|
|
|
|
...(contentType ? { "Content-Type": contentType } : {}),
|
|
|
|
...(basicAuthHeader),
|
|
|
|
...(basicAuthHeader),
|
|
|
|
...(oauth2AuthHeader),
|
|
|
|
...(oauth2AuthHeader),
|
|
|
@ -627,7 +626,6 @@ class Monitor extends BeanModel {
|
|
|
|
timeout: this.timeout * 1000,
|
|
|
|
timeout: this.timeout * 1000,
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
|
"Accept": "*/*",
|
|
|
|
"Accept": "*/*",
|
|
|
|
"User-Agent": "Uptime-Kuma/" + version,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
httpsAgent: CacheableDnsHttpAgent.getHttpsAgent({
|
|
|
|
httpsAgent: CacheableDnsHttpAgent.getHttpsAgent({
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
@ -681,7 +679,6 @@ class Monitor extends BeanModel {
|
|
|
|
timeout: this.interval * 1000 * 0.8,
|
|
|
|
timeout: this.interval * 1000 * 0.8,
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
|
"Accept": "*/*",
|
|
|
|
"Accept": "*/*",
|
|
|
|
"User-Agent": "Uptime-Kuma/" + version,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
httpsAgent: CacheableDnsHttpAgent.getHttpsAgent({
|
|
|
|
httpsAgent: CacheableDnsHttpAgent.getHttpsAgent({
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|
maxCachedSessions: 0, // Use Custom agent to disable session reuse (https://github.com/nodejs/node/issues/3940)
|
|
|
|