From 1bbe5c3b32556d0951db27186accf5eff3ac4256 Mon Sep 17 00:00:00 2001 From: Sjoerd Hooft Date: Sat, 18 Apr 2026 15:26:12 +0200 Subject: [PATCH] fix: enhance JSON detection in bot updater script --- update-bot-addresses.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-bot-addresses.sh b/update-bot-addresses.sh index d3bd4b8..fc9f926 100755 --- a/update-bot-addresses.sh +++ b/update-bot-addresses.sh @@ -62,7 +62,7 @@ for entry in "${SOURCES[@]}"; do content_type="$(awk 'BEGIN{IGNORECASE=1} /^content-type:/ {gsub(/\r$/,""); sub(/^content-type:[[:space:]]*/i,""); sub(/;.*/,""); print; exit}' "$tmp_hdr")" is_json=0 - if [[ "$content_type" =~ json ]]; then + if [[ "$content_type" =~ json ]] || [[ "$url" == *.json ]]; then is_json=1 fi