diff --git a/server/model/monitor.js b/server/model/monitor.js index 48b0b1d3..d93fd6dd 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -251,16 +251,13 @@ class Monitor extends BeanModel { let contentType = null; let bodyValue = null; - + if (this.body && !this.httpBodyEncoding || this.httpBodyEncoding === "json") { bodyValue = JSON.parse(this.body); contentType = "application/json"; } else if (this.body && (this.httpBodyEncoding === "xml")) { bodyValue = this.body; - contentType = "text/xml"; - } else if (this.body && (this.httpBodyEncoding === "form")) { - bodyValue = this.body; - contentType = "application/x-www-form-urlencoded"; + contentType = "text/xml; charset=utf-8"; } const options = { diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index ea246c60..05b89ab0 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -438,21 +438,14 @@ - -