feat: increase response body limit

This commit is contained in:
nate 2026-03-24 17:08:40 +04:00
parent ecb876c964
commit bb05dae926
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -226,7 +226,7 @@
// Body preview
if (bodyPreview) {
html += '<div>';
html += '<div class="text-xs text-gray-500 mb-1">Response Body <span class="text-gray-600">(first 500 chars)</span></div>';
html += '<div class="text-xs text-gray-500 mb-1">Response Body <span class="text-gray-600">(up to 25KB)</span></div>';
html += `<pre class="bg-gray-800/50 border border-border-subtle rounded-lg px-3 py-2 text-xs font-mono text-gray-300 whitespace-pre-wrap break-all max-h-80 overflow-y-auto">${escapeHtml(bodyPreview)}</pre>`;
html += '</div>';
}