Skip to content

Commit

Permalink
MoodbarLoader: Add header name for disk cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed May 12, 2024
1 parent 0a99eca commit 0983ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moodbar/moodbarloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0983ba1

Please sign in to comment.