From b36d6e1f423bc405895d1b72e9a5915c4aa74ecc Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 4 Feb 2026 21:53:00 +0700 Subject: brokenlinks: skip parsing non-HTML page If the response Content-type return other than "text/html", skip parsing the content and return immediately. --- brokenlinks/testdata/exp_cache.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'brokenlinks/testdata/exp_cache.json') diff --git a/brokenlinks/testdata/exp_cache.json b/brokenlinks/testdata/exp_cache.json index f9aa32a..bb8fa94 100644 --- a/brokenlinks/testdata/exp_cache.json +++ b/brokenlinks/testdata/exp_cache.json @@ -2,7 +2,7 @@ "scanned_links": { "http://127.0.0.1:11900": { "url": "http://127.0.0.1:11900", - "size": 1064, + "size": 1141, "status_code": 200 }, "http://127.0.0.1:11900/page2": { @@ -12,7 +12,7 @@ }, "https://127.0.0.1:11838": { "url": "https://127.0.0.1:11838", - "size": 1064, + "size": 1141, "status_code": 200 } } -- cgit v1.3