From 18c372f91566cc9f2689e8866a6f93e748e27150 Mon Sep 17 00:00:00 2001 From: Tobias Hort Date: Fri, 26 Dec 2025 07:57:07 +0100 Subject: [PATCH] common/xbps-src/shutils/update_check.sh: support JSON responses Added support for application/json content type. Enabling interaction with APIs like https://api.github.com/repos///releases/latest. --- common/xbps-src/shutils/update_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index b645c9cc49d1f0..daf32cd6902c0d 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -222,7 +222,7 @@ update_check() { fi msg_verbose "fetching $url and scanning with $rx\n" - curl "${curlargs[@]}" -H 'Accept: text/html,application/xhtml+xml,application/xml,text/plain,application/rss+xml' "$url" | + curl "${curlargs[@]}" -H 'Accept: text/html,application/xhtml+xml,application/xml,text/plain,application/rss+xml,application/json' "$url" | grep -Po -i "$rx" fetchedurls[$url]=yes done |