Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
6e8626f2
Commit
6e8626f2
authored
Feb 09, 2022
by
Dan Leinir Turthra Jensen
🌈
Browse files
Fix build
parent
b85cf342
Pipeline
#135478
passed with stage
in 4 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
attica-kde/kdeplugin/kdeplatformdependent.cpp
View file @
6e8626f2
...
...
@@ -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
{
QLatin1String
{
"/content/categories"
}
}
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
...
...
Dan Leinir Turthra Jensen
🌈
@leinir
mentioned in commit
8e164050
·
Feb 09, 2022
mentioned in commit
8e164050
mentioned in commit 8e164050c594855ee3728678d6d0907a10b28db6
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment