mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 15:24:05 +00:00
Add Body Encoding field
This commit is contained in:
parent
9a488d6968
commit
3a18801722
2 changed files with 18 additions and 0 deletions
|
@ -553,4 +553,5 @@ export default {
|
||||||
disableCloudflaredNoAuthMsg: "You are in No Auth mode, password is not require.",
|
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.",
|
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}",
|
wayToGetLineNotifyToken: "You can get an access token from {0}",
|
||||||
|
"Body Encoding": "Body Encoding"
|
||||||
};
|
};
|
||||||
|
|
|
@ -396,6 +396,22 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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 -->
|
<!-- Body -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="body" class="form-label">{{ $t("Body") }}</label>
|
<label for="body" class="form-label">{{ $t("Body") }}</label>
|
||||||
|
@ -644,6 +660,7 @@ export default {
|
||||||
mqttTopic: "",
|
mqttTopic: "",
|
||||||
mqttSuccessMessage: "",
|
mqttSuccessMessage: "",
|
||||||
authMethod: null,
|
authMethod: null,
|
||||||
|
bodyEncoding: null
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.$root.proxyList && !this.monitor.proxyId) {
|
if (this.$root.proxyList && !this.monitor.proxyId) {
|
||||||
|
|
Loading…
Reference in a new issue