mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix reporting the right error in a GET
We always reported the lack of e-tag instead of the real error
This commit is contained in:
parent
6c44f53645
commit
2e76fe87c2
@ -377,8 +377,8 @@ void GETFileJob::start() {
|
||||
|
||||
void GETFileJob::slotMetaDataChanged()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO << reply()->error() << reply()->errorString() << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute);
|
||||
if (reply()->error() != QNetworkReply::NoError ) {
|
||||
if (reply()->error() != QNetworkReply::NoError
|
||||
|| reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() / 100 != 2) {
|
||||
// We will handle the error when the job is finished.
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user