mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
fix automated tests with network requests
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
e3456847d8
commit
ced85ac287
1 changed files with 1 additions and 1 deletions
|
@ -1076,7 +1076,7 @@ QNetworkReply *FakeQNAM::createRequest(QNetworkAccessManager::Operation op, cons
|
||||||
const bool isUpload = newRequest.url().path().startsWith(sUploadUrl.path());
|
const bool isUpload = newRequest.url().path().startsWith(sUploadUrl.path());
|
||||||
FileInfo &info = isUpload ? _uploadFileInfo : _remoteRootFileInfo;
|
FileInfo &info = isUpload ? _uploadFileInfo : _remoteRootFileInfo;
|
||||||
|
|
||||||
auto verb = newRequest.attribute(QNetworkRequest::CustomVerbAttribute);
|
auto verb = newRequest.attribute(QNetworkRequest::CustomVerbAttribute).toString();
|
||||||
if (verb == QLatin1String("PROPFIND")) {
|
if (verb == QLatin1String("PROPFIND")) {
|
||||||
// Ignore outgoingData always returning something good enough, works for now.
|
// Ignore outgoingData always returning something good enough, works for now.
|
||||||
reply = new FakePropfindReply { info, op, newRequest, this };
|
reply = new FakePropfindReply { info, op, newRequest, this };
|
||||||
|
|
Loading…
Reference in a new issue