From ab4c508def7fa6af0b38aa34c0bb048a89fc78ad Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 23 Sep 2015 23:46:38 +0200 Subject: sfeed_update: dont send user-agent by default (curl+version) (privacy/security) --- sfeed_update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfeed_update') diff --git a/sfeed_update b/sfeed_update index 4aa094c..96691cf 100755 --- a/sfeed_update +++ b/sfeed_update @@ -40,7 +40,7 @@ merge() { # fetch a feed via HTTP/HTTPS etc. # fetchfeed(url, name, feedfile) fetchfeed() { - if curl -f -s -S --max-time 15 -z "$3" "$1"; then + if curl -H 'User-Agent:' -f -s -S --max-time 15 -z "$3" "$1"; then printf " OK %s %s\n" "$(date +'%H:%M:%S')" "$2" >&2 else printf "FAIL %s %s\n" "$(date +'%H:%M:%S')" "$2" >&2 -- cgit v1.2.3