Skip to content

Commit

Permalink
fix: item should be indexed with final url, not orig url
Browse files Browse the repository at this point in the history
  • Loading branch information
mkiol committed Dec 5, 2022
1 parent a9b20ae commit 7371c29
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/contentserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2157,7 +2157,8 @@ ContentServer::makeItemMetaUsingHTTPRequest2(
if (QThread::currentThread()->isInterruptionRequested()) {
qWarning()
<< "thread interruption was requested => aborting request";
return reply->abort();
reply->abort();
return;
}

qDebug() << ">> received bytes for:"
Expand Down Expand Up @@ -2185,7 +2186,8 @@ ContentServer::makeItemMetaUsingHTTPRequest2(
if (QThread::currentThread()->isInterruptionRequested()) {
qWarning()
<< "thread interruption was requested => aborting request";
return reply->abort();
reply->abort();
return;
}

if (reply->rawHeaderPairs().isEmpty()) return;
Expand Down Expand Up @@ -2392,7 +2394,8 @@ ContentServer::makeItemMetaUsingHTTPRequest2(
}

reply->deleteLater();
return m_metaCache.insert(url, meta);

return m_metaCache.insert(meta.url, meta);
}

QHash<QUrl, ContentServer::ItemMeta>::iterator
Expand Down

0 comments on commit 7371c29

Please sign in to comment.