Add only xml support to http monitors
This commit is contained in:
parent
f6919aef1d
commit
3adc9e65d6
|
@ -257,10 +257,7 @@ class Monitor extends BeanModel {
|
|||
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 = {
|
||||
|
|
|
@ -438,21 +438,14 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Encoding -->
|
||||
<div class="my-3">
|
||||
<label for="httpBodyEncoding" class="form-label">{{ $t("Body Encoding") }}</label>
|
||||
<select id="httpBodyEncoding" v-model="monitor.httpBodyEncoding" class="form-select">
|
||||
<option value="json">
|
||||
JSON
|
||||
</option>
|
||||
<option value="form">
|
||||
x-www-form-urlencoded
|
||||
</option>
|
||||
<option value="xml">
|
||||
XML
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- Encoding -->
|
||||
<div class="my-3">
|
||||
<label for="httpBodyEncoding" class="form-label">{{ $t("Body Encoding") }}</label>
|
||||
<select id="httpBodyEncoding" v-model="monitor.httpBodyEncoding" class="form-select">
|
||||
<option value="json">JSON</option>
|
||||
<option value="xml">XML</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Body -->
|
||||
<div class="my-3">
|
||||
|
|
Loading…
Reference in New Issue