mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
Fix case for setting httpBodyEncoding to null - does work for http, b… (#3498)
* Fix case for setting httpBodyEncoding to null - does work for http, but not for keyword if anything else but json. * Updating case. * Update src/pages/EditMonitor.vue Added suggestion from @CommanderStorm Co-authored-by: Frank Elsinga <frank@elsinga.de> * Update src/pages/EditMonitor.vue Co-authored-by: Frank Elsinga <frank@elsinga.de> --------- Co-authored-by: Anders Kvist <ak@cego.dk> Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
23fdd32de0
commit
ceb5708bfd
1 changed files with 2 additions and 1 deletions
|
@ -1348,7 +1348,8 @@ message HealthCheckResponse {
|
|||
this.monitor.body = JSON.stringify(JSON.parse(this.monitor.body), null, 4);
|
||||
}
|
||||
|
||||
if (this.monitor.type && this.monitor.type !== "http" && (this.monitor.type !== "keyword" || this.monitor.type !== "json-query")) {
|
||||
const monitorTypesWithEncodingAllowed = [ "http", "keyword", "json-query" ];
|
||||
if (this.monitor.type && !monitorTypesWithEncodingAllowed.includes(this.monitor.type)) {
|
||||
this.monitor.httpBodyEncoding = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue