Add Body Encoding field

pull/1987/head
Justin Tisdale 2 years ago
parent 9a488d6968
commit 3a18801722

@ -553,4 +553,5 @@ export default {
disableCloudflaredNoAuthMsg: "You are in No Auth mode, password is not require.",
trustProxyDescription: "Trust 'X-Forwarded-*' headers. If you want to get the correct client IP and your Uptime Kuma is behind such as Nginx or Apache, you should enable this.",
wayToGetLineNotifyToken: "You can get an access token from {0}",
"Body Encoding": "Body Encoding"
};

@ -396,6 +396,22 @@
</select>
</div>
<!-- Encoding -->
<div class="my-3">
<label for="bodyEncoding" class="form-label">{{ $t("Body Encoding") }}</label>
<select id="bodyEncoding" v-model="monitor.bodyEncoding" class="form-select">
<option value="json">
JSON
</option>
<option value="form">
x-www-form-urlencoded
</option>
<option value="xml">
XML
</option>
</select>
</div>
<!-- Body -->
<div class="my-3">
<label for="body" class="form-label">{{ $t("Body") }}</label>
@ -644,6 +660,7 @@ export default {
mqttTopic: "",
mqttSuccessMessage: "",
authMethod: null,
bodyEncoding: null
};
if (this.$root.proxyList && !this.monitor.proxyId) {

Loading…
Cancel
Save