From bb05dae9263ec36c83bd7d36de9de26b1f179f6a Mon Sep 17 00:00:00 2001 From: nate Date: Tue, 24 Mar 2026 17:08:40 +0400 Subject: [PATCH] feat: increase response body limit --- apps/monitor/src/runner.rs | 2 +- apps/web/src/views/detail.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/monitor/src/runner.rs b/apps/monitor/src/runner.rs index f22aba4..db4dbfb 100644 --- a/apps/monitor/src/runner.rs +++ b/apps/monitor/src/runner.rs @@ -246,7 +246,7 @@ async fn run_check(client: &reqwest::Client, monitor: &Monitor, scheduled_at: Op let meta = json!({ "headers": headers, - "body_preview": &body[..body.len().min(500)], + "body_preview": &body[..body.len().min(25_000)], }); debug!("{} → {status} {latency_ms}ms up={up}", monitor.url); diff --git a/apps/web/src/views/detail.ejs b/apps/web/src/views/detail.ejs index 4fceb3f..ea3ad39 100644 --- a/apps/web/src/views/detail.ejs +++ b/apps/web/src/views/detail.ejs @@ -226,7 +226,7 @@ // Body preview if (bodyPreview) { html += '
'; - html += '
Response Body (first 500 chars)
'; + html += '
Response Body (up to 25KB)
'; html += `
${escapeHtml(bodyPreview)}
`; html += '
'; }