Commit 6e8626f2 authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈
Browse files

Fix build

parent b85cf342
Pipeline #135478 passed with stage
in 4 minutes and 56 seconds
......@@ -128,12 +128,10 @@ QNetworkRequest KdePlatformDependent::addOAuthToRequest(const QNetworkRequest &r
notConstReq.setAttribute(QNetworkRequest::Http2AllowedAttribute, true);
// Add cache preference in a granular fashion (we will almost certainly want more of these, but...)
static const QStringList preferCacheEndpoints{
static const QStringList preferCacheEndpoints{QLatin1String{"/content/categories"}};
for (const QString &endpoint : preferCacheEndpoints) {
if (notConstReq.url().endsWith(endpoint)) {
QNetworkCacheMetaData cacheMeta{m_accessManager->cache.metaData(notConstReq.url())};
if (notConstReq.url().toString().endsWith(endpoint)) {
QNetworkCacheMetaData cacheMeta{m_accessManager->cache()->metaData(notConstReq.url())};
if (cacheMeta.isValid()) {
// If the expiration date is valid, but longer than 24 hours, don't trust that things
// haven't changed and check first, otherwise just use the cached version to relieve
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment