summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-09-23 23:46:38 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-09-23 23:46:38 +0200
commitab4c508def7fa6af0b38aa34c0bb048a89fc78ad (patch)
treec17966393bcc6cc0253ae9503d6ff31b9d301872
parent45a22a3865956a99bee2739772f657e8496b7e1a (diff)
sfeed_update: dont send user-agent by default (curl+version) (privacy/security)
-rwxr-xr-xsfeed_update2
1 files changed, 1 insertions, 1 deletions
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