Skip to content

Commit

Permalink
Merge pull request #6968 from nextcloud/bugfix/handlePermanentRedirect
Browse files Browse the repository at this point in the history
forward the redirected signal from QNetworkReply to detect them
  • Loading branch information
mgallien committed Aug 6, 2024
2 parents fcde946 + f3c8038 commit 109c2ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsync/abstractnetworkjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void AbstractNetworkJob::setupConnections(QNetworkReply *reply)
connect(reply, &QNetworkReply::metaDataChanged, this, &AbstractNetworkJob::networkActivity);
connect(reply, &QNetworkReply::downloadProgress, this, &AbstractNetworkJob::networkActivity);
connect(reply, &QNetworkReply::uploadProgress, this, &AbstractNetworkJob::networkActivity);
connect(reply, &QNetworkReply::redirected, this, [reply, this] (const QUrl &url) { emit redirected(reply, url, 0);});
}

QNetworkReply *AbstractNetworkJob::addTimer(QNetworkReply *reply)
Expand Down

0 comments on commit 109c2ce

Please sign in to comment.