diff options
author | 2024-06-23 17:11:29 +0200 | |
---|---|---|
committer | 2024-09-14 20:51:30 +0300 | |
commit | 2284415e510935bb1937fc06a1ab3b8bd44cf3c8 (patch) | |
tree | e6898927f11e3dcb02c025da0b48f6b096b50064 /rss/parser.cpp | |
parent | 5e71f20e236f939610acccc047e64dceb902f689 (diff) | |
download | newsboat-2284415e510935bb1937fc06a1ab3b8bd44cf3c8.tar.gz newsboat-2284415e510935bb1937fc06a1ab3b8bd44cf3c8.tar.zst newsboat-2284415e510935bb1937fc06a1ab3b8bd44cf3c8.zip |
Don't retry feed retrieval on HTTP 304 (Not Modified)
(cherry picked from commit 10ef5b59fa16c9eedacf217550f408026bebbdc8)
Diffstat (limited to 'rss/parser.cpp')
-rw-r--r-- | rss/parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rss/parser.cpp b/rss/parser.cpp index dfe72f3c..3afffe14 100644 --- a/rss/parser.cpp +++ b/rss/parser.cpp @@ -230,6 +230,9 @@ Feed Parser::parse_url(const std::string& url, } throw Exception(msg); } + if (infoOk == CURLE_OK && status == 304) { + throw NotModifiedException(); + } const std::string buf = curlDataReceiver->get_data(); LOG(Level::DEBUG, |