From 68a11770aa4fac74fd52a71a362921ac22fa3586 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 16 Aug 2018 15:17:54 +0200 Subject: [PATCH] common/update_check.sh: accpeted mime types --- 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 8a8e0599d3a..94f7cee0e8e 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -75,7 +75,7 @@ update_check() { if [ -n "$XBPS_UPDATE_CHECK_VERBOSE" ]; then echo "fetching $url" 1>&2 fi - curl -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$url" | + curl -H 'Accept: text/html,application/xhtml+xml,application/xml,text/plain' -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$url" | grep -Po -i "$rx" done | tr _ . |