mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-16 00:21:52 +08:00
fix lint
This commit is contained in:
@@ -252,7 +252,7 @@ class Monitor extends BeanModel {
|
|||||||
let bodyValue = null;
|
let bodyValue = null;
|
||||||
let contentType = null;
|
let contentType = null;
|
||||||
|
|
||||||
if (this.body && !this.httpBodyEncoding || this.httpBodyEncoding === "json"){
|
if (this.body && !this.httpBodyEncoding || this.httpBodyEncoding === "json") {
|
||||||
bodyValue = JSON.parse(this.body);
|
bodyValue = JSON.parse(this.body);
|
||||||
contentType = "application/json";
|
contentType = "application/json";
|
||||||
} else if (this.body && (this.httpBodyEncoding === "xml")) {
|
} else if (this.body && (this.httpBodyEncoding === "xml")) {
|
||||||
|
@@ -559,5 +559,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"
|
"Body Encoding": "Body Encoding",
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user