From bfc1e213b94a2f24e3e84f7d314efc96473b656d Mon Sep 17 00:00:00 2001 From: NetworkCats Date: Mon, 2 Mar 2026 20:14:55 +0800 Subject: [PATCH] fix: capitalize boolean values in HTML to match mockup --- templates/index.html | 8 ++++---- tests/integration.rs | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/index.html b/templates/index.html index 1729db7..ec94d5a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -42,19 +42,19 @@ Proxy - {{ is_proxy }} + {% if is_proxy %}True{% else %}False{% endif %} VPN - {{ is_vpn }} + {% if is_vpn %}True{% else %}False{% endif %} Hosting - {{ is_hosting }} + {% if is_hosting %}True{% else %}False{% endif %} Tor - {{ is_tor }} + {% if is_tor %}True{% else %}False{% endif %} diff --git a/tests/integration.rs b/tests/integration.rs index f62c4ca..67c34fc 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -214,6 +214,8 @@ async fn browser_returns_html() { assert!(body.contains("45.77.77.77")); assert!(body.contains("Piscataway")); assert!(body.contains("AS20473")); + assert!(body.contains(">True<")); + assert!(body.contains(">False<")); } #[tokio::test]