From 0983ba13393d6bb5682f59d980506997fe63828d Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 13 May 2024 00:44:37 +0200 Subject: [PATCH] MoodbarLoader: Add header name for disk cache --- src/moodbar/moodbarloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/moodbar/moodbarloader.cpp b/src/moodbar/moodbarloader.cpp index 11caa2c90..9cdc83581 100644 --- a/src/moodbar/moodbarloader.cpp +++ b/src/moodbar/moodbarloader.cpp @@ -192,7 +192,7 @@ void MoodbarLoader::RequestFinished(MoodbarPipeline *request, const QUrl &url) { disk_cache_metadata.setSaveToDisk(true); disk_cache_metadata.setUrl(CacheUrlEntry(filename)); // Qt 6 now ignores any entry without headers, so add a fake header. - disk_cache_metadata.setRawHeaders(QNetworkCacheMetaData::RawHeaderList() << qMakePair(QByteArray(), QByteArray())); + disk_cache_metadata.setRawHeaders(QNetworkCacheMetaData::RawHeaderList() << qMakePair(QByteArray("moodbar"), QByteArray("moodbar"))); QIODevice *device_cache_file = cache_->prepare(disk_cache_metadata); if (device_cache_file) {