mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-31 00:36:16 +00:00
Merge branch 'feature/add-support-for-method-body-and-headers'
This commit is contained in:
commit
f4b8da0a5c
1 changed files with 9 additions and 0 deletions
|
@ -467,6 +467,15 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Beautiful the JSON format
|
||||||
|
if (this.monitor.body) {
|
||||||
|
this.monitor.body = JSON.stringify(JSON.parse(this.monitor.body), null, 4);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.monitor.headers) {
|
||||||
|
this.monitor.headers = JSON.stringify(JSON.parse(this.monitor.headers), null, 4);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.isAdd) {
|
if (this.isAdd) {
|
||||||
this.$root.add(this.monitor, async (res) => {
|
this.$root.add(this.monitor, async (res) => {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue