mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 12:14:41 -05:00
Customize body placeholder for body encoding
This commit is contained in:
parent
c9b4a7f53e
commit
9e3a77f419
@ -732,6 +732,15 @@ message HealthCheckResponse {
|
|||||||
` ]);
|
` ]);
|
||||||
},
|
},
|
||||||
bodyPlaceholder() {
|
bodyPlaceholder() {
|
||||||
|
if (this.monitor && this.monitor.httpBodyEncoding && this.monitor.httpBodyEncoding === "xml") {
|
||||||
|
return this.$t("Example:", [ `
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
||||||
|
<soap:Body>
|
||||||
|
<Uptime>Kuma</Uptime>
|
||||||
|
</soap:Body>
|
||||||
|
</soap:Envelope>` ]);
|
||||||
|
}
|
||||||
return this.$t("Example:", [ `
|
return this.$t("Example:", [ `
|
||||||
{
|
{
|
||||||
"key": "value"
|
"key": "value"
|
||||||
|
Loading…
Reference in New Issue
Block a user