diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-01-07 08:35:25 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-07 09:44:02 +0100 |
| commit | 50729c19ebf75ab91ee285fe7af86abbdaec411c (patch) | |
| tree | a45b68bc7b28e20b59f0fded5bfa89e65783ac34 /src/cachehandler.hpp | |
| parent | b7f07140cbe020a90f553cbd00fbcd9c35115579 (diff) | |
Fixes pages not being read from cache due to differing trailing slash
Also fixes favourites with the same problem
Diffstat (limited to 'src/cachehandler.hpp')
| -rw-r--r-- | src/cachehandler.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cachehandler.hpp b/src/cachehandler.hpp index 74f61a2..5aab2b6 100644 --- a/src/cachehandler.hpp +++ b/src/cachehandler.hpp @@ -51,15 +51,18 @@ class CacheHandler public: void push(QUrl const & url, QByteArray const & body, MimeType const & mime); - std::shared_ptr<CachedPage> find(QString const &url); std::shared_ptr<CachedPage> find(QUrl const &url); - bool contains(QString const & url) const; bool contains(QUrl const & url) const; CacheMap const& getPages() const; private: + std::shared_ptr<CachedPage> find(QString const &url); + + bool contains(QString const & url) const; + +private: // In-memory cache storage. CacheMap page_cache; }; |
