diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index c13ecc7a6..0e1faf372 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -1348,7 +1348,8 @@ message HealthCheckResponse { this.monitor.body = JSON.stringify(JSON.parse(this.monitor.body), null, 4); } - if (this.monitor.type && this.monitor.type !== "http" && (this.monitor.type !== "keyword" || this.monitor.type !== "json-query")) { + const monitorTypesWithEncodingAllowed = [ "http", "keyword", "json-query" ]; + if (this.monitor.type && !monitorTypesWithEncodingAllowed.includes(this.monitor.type)) { this.monitor.httpBodyEncoding = null; }