Commit c4aecfa6 authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈 Committed by Aleix Pol Gonzalez
Browse files

Fix missing variable name

parent 122f59d0
......@@ -128,11 +128,11 @@ 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 QList<QString> preferCacheEndpoints{
static const QStringList preferCacheEndpoints{
QLatin1String{"/content/categories"}
}
for (const QString &endpoint : preferCacheEndpoints) {
if (notConstReq.url().endsWith()) {
if (notConstReq.url().endsWith(endpoint)) {
notConstReq.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache);
break;
}
......
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