summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-14 16:59:27 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-14 16:59:27 +0200
commit84831ac69e9a20800a50a902aa5e7000168f3d45 (patch)
tree23e45db83a039bccb9ba9470989e6d3a08d9a929
parentd9e82ec925405b65c6c1b1a166b4215afa31add8 (diff)
sfeed_update: don't redirect, use only the feed url specified.
It could mess up urls in items (redirect http to https). It is also safer.
-rwxr-xr-xsfeed_update2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_update b/sfeed_update
index 56be43a..c2c91bc 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -41,7 +41,7 @@ merge() {
# fetch a feed via HTTP/HTTPS etc.
# fetchfeed(url, name, feedfile)
fetchfeed() {
- if curl -f -s -S -L --max-time 15 -z "$3" "$1"; then
+ if curl -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