Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2017-03-03 13:20:53 +0300
committerckamm <mail@ckamm.de>2017-03-07 15:18:01 +0300
commit4a1a5fa0764d2dbed076cfeb17e9aee6a4b856b7 (patch)
tree55bc28a6a1a5ba84faeec12a4af748dbe51e3624 /src/gui/notificationconfirmjob.cpp
parent298684aaa07b970065b5b681f9d2b855f3824988 (diff)
AbstractNetworkJob: Improve redirect handling #5555
* For requests: - reuse the original QNetworkRequest, so headers and attributes are the same as in the original request - determine the original http method from the reply and the request attributes - keep the original request body around such that it can be sent again in case the request is redirected * Simplify the interface that is used for creating new requests in AbstractNetworkJob.
Diffstat (limited to 'src/gui/notificationconfirmjob.cpp')
-rw-r--r--src/gui/notificationconfirmjob.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/notificationconfirmjob.cpp b/src/gui/notificationconfirmjob.cpp
index b3051827e..479c4238d 100644
--- a/src/gui/notificationconfirmjob.cpp
+++ b/src/gui/notificationconfirmjob.cpp
@@ -54,9 +54,7 @@ void NotificationConfirmJob::start()
req.setRawHeader("Ocs-APIREQUEST", "true");
req.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
- QIODevice *iodevice = 0;
- setReply(davRequest(_verb, _link, req, iodevice));
- setupConnections(reply());
+ sendRequest(_verb, _link, req);
AbstractNetworkJob::start();
}