diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-05-02 20:24:02 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-05-02 20:24:02 +0200 |
commit | 40db2bcd4bc92aab5cfe60f2e79c348425d0dd91 (patch) | |
tree | ab8c0bf9390ec8bd5452b0968060734f1e223582 /sfeed_update | |
parent | 84234e131aa58e31b1027abe18819beb8a637f31 (diff) |
sfeed_update: disable If-Modified-Since by default
Diffstat (limited to 'sfeed_update')
-rwxr-xr-x | sfeed_update | 5 |
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. |