common/update_check.sh: accpeted mime types

This commit is contained in:
John 2018-08-16 15:17:54 +02:00 committed by maxice8
parent c006e8e568
commit 68a11770aa
1 changed files with 1 additions and 1 deletions

View File

@ -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 _ . |