diff --git a/server/model/monitor.js b/server/model/monitor.js index 85c07cb..6ec9737 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -180,6 +180,10 @@ class Monitor extends BeanModel { debug("Cert Info Query Time: " + (dayjs().valueOf() - certInfoStartTime) + "ms"); } + if (process.env.UPTIME_KUMA_LOG_RESPONSE_BODY_MONITOR_ID == this.id) { + console.log(res.data); + } + if (this.type === "http") { bean.status = UP; } else { diff --git a/server/util-server.js b/server/util-server.js index a65af74..7fd613c 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -327,7 +327,7 @@ exports.startUnitTest = async () => { */ exports.convertToUTF8 = (body) => { const guessEncoding = chardet.detect(body); - debug("Guess Encoding: " + guessEncoding); + //debug("Guess Encoding: " + guessEncoding); const str = iconv.decode(body, guessEncoding); return str.toString(); }; diff --git a/src/languages/en.js b/src/languages/en.js index fac34a3..aef14c8 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -288,6 +288,4 @@ export default { PushUrl: "Push URL", HeadersInvalidFormat: "The request headers are not valid JSON: ", BodyInvalidFormat: "The request body is not valid JSON: ", - BodyPlaceholder: "{\n\t\"id\": 124357,\n\t\"username\": \"admin\",\n\t\"password\": \"myAdminPassword\"\n}", - HeadersPlaceholder: "{\n\t\"Authorization\": \"Bearer abc123\",\n\t\"Content-Type\": \"application/json\"\n}", }; diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 374c14e..f886144 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -44,46 +44,6 @@ - -
{{ $t("Not available, please setup.") }}
@@ -254,6 +215,51 @@
+
+
+
+ {{ $t("HTTP Options") }}
+
+
+