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

github.com/nextcloud/desktop.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/thumbnailjob.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/thumbnailjob.cpp')
-rw-r--r--src/gui/thumbnailjob.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/thumbnailjob.cpp b/src/gui/thumbnailjob.cpp
index d3e92cb42..5ffe6c291 100644
--- a/src/gui/thumbnailjob.cpp
+++ b/src/gui/thumbnailjob.cpp
@@ -27,8 +27,7 @@ ThumbnailJob::ThumbnailJob(const QString &path, AccountPtr account, QObject* par
void ThumbnailJob::start()
{
- setReply(getRequest(path()));
- setupConnections(reply());
+ sendRequest("GET", makeAccountUrl(path()));
AbstractNetworkJob::start();
}