Add Body Encoding field

This commit is contained in:
Justin Tisdale 2022-08-10 21:46:43 -04:00
parent 9a488d6968
commit 3a18801722
2 changed files with 18 additions and 0 deletions

View File

@ -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"
};

View File

@ -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) {