From ced85ac28770f6fb2e985410db1234a8b203b165 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Sun, 17 Sep 2023 10:45:33 +0200 Subject: [PATCH] fix automated tests with network requests Signed-off-by: Matthieu Gallien --- test/syncenginetestutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/syncenginetestutils.cpp b/test/syncenginetestutils.cpp index 933814925..98519731c 100644 --- a/test/syncenginetestutils.cpp +++ b/test/syncenginetestutils.cpp @@ -1076,7 +1076,7 @@ QNetworkReply *FakeQNAM::createRequest(QNetworkAccessManager::Operation op, cons const bool isUpload = newRequest.url().path().startsWith(sUploadUrl.path()); FileInfo &info = isUpload ? _uploadFileInfo : _remoteRootFileInfo; - auto verb = newRequest.attribute(QNetworkRequest::CustomVerbAttribute); + auto verb = newRequest.attribute(QNetworkRequest::CustomVerbAttribute).toString(); if (verb == QLatin1String("PROPFIND")) { // Ignore outgoingData always returning something good enough, works for now. reply = new FakePropfindReply { info, op, newRequest, this };