diff options
Diffstat (limited to 'rss')
-rw-r--r-- | rss/exception.h | 3 | ||||
-rw-r--r-- | rss/parser.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/rss/exception.h b/rss/exception.h index 5b0548e2f..1fc1ef33 100644 --- a/rss/exception.h +++ b/rss/exception.h @@ -16,6 +16,9 @@ private: std::string emsg; }; +class NotModifiedException : public std::exception { +}; + } // namespace rsspp #endif /* NEWSBOAT_RSSPPEXCEPTION_H_ */ diff --git a/rss/parser.cpp b/rss/parser.cpp index 68b3c2ab..2eb66d82 100644 --- a/rss/parser.cpp +++ b/rss/parser.cpp @@ -239,6 +239,9 @@ Feed Parser::parse_url(const std::string& url, } throw Exception(msg); } + if (infoOk == CURLE_OK && status == 304) { + throw NotModifiedException(); + } LOG(Level::INFO, "Parser::parse_url: retrieved data for %s: %s", |