AbstractNetworkJob: Improve redirect handling #5555
authorChristian Kamm <mail@ckamm.de>
Fri, 3 Mar 2017 10:20:53 +0000 (11:20 +0100)
committerckamm <mail@ckamm.de>
Tue, 7 Mar 2017 12:18:01 +0000 (13:18 +0100)
commit4a1a5fa0764d2dbed076cfeb17e9aee6a4b856b7
tree55bc28a6a1a5ba84faeec12a4af748dbe51e3624
parent298684aaa07b970065b5b681f9d2b855f3824988
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.
15 files changed:
src/gui/notificationconfirmjob.cpp
src/gui/ocsjob.cpp
src/gui/owncloudsetupwizard.cpp
src/gui/thumbnailjob.cpp
src/libsync/abstractnetworkjob.cpp
src/libsync/abstractnetworkjob.h
src/libsync/account.cpp
src/libsync/account.h
src/libsync/networkjobs.cpp
src/libsync/propagatedownload.cpp
src/libsync/propagateremotedelete.cpp
src/libsync/propagateremotemove.cpp
src/libsync/propagateupload.cpp
src/libsync/propagateupload.h
test/syncenginetestutils.h