diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-14 16:59:27 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-14 16:59:27 +0200 |
commit | 84831ac69e9a20800a50a902aa5e7000168f3d45 (patch) | |
tree | 23e45db83a039bccb9ba9470989e6d3a08d9a929 /sfeed_update | |
parent | d9e82ec925405b65c6c1b1a166b4215afa31add8 (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.
Diffstat (limited to 'sfeed_update')
-rwxr-xr-x | sfeed_update | 2 |
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 |