summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-05-02 20:24:02 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-05-02 20:24:02 +0200
commit40db2bcd4bc92aab5cfe60f2e79c348425d0dd91 (patch)
treeab8c0bf9390ec8bd5452b0968060734f1e223582 /sfeed_update
parent84234e131aa58e31b1027abe18819beb8a637f31 (diff)
sfeed_update: disable If-Modified-Since by default
Diffstat (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfeed_update b/sfeed_update
index cdb6f67..307d264 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -39,10 +39,9 @@ log() {
# fetch a feed via HTTP/HTTPS etc.
# fetch(name, url, feedfile)
fetch() {
- # fail on redirects, hide User-Agent, timeout is 15 seconds,
- # -z for If-Modified-Since.
+ # fail on redirects, hide User-Agent, timeout is 15 seconds.
curl -L --max-redirs 0 -H "User-Agent:" -f -s -m 15 \
- -z "$3" "$2" 2>/dev/null
+ "$2" 2>/dev/null
}
# convert encoding from one encoding to another.