PropagateDownload: Don't discard the body of error message
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 30 May 2018 14:29:29 +0000 (16:29 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:57:55 +0000 (10:57 +0100)
commit857afd32dfe0a9d71ea886753ba1663923aa56e0
treeb0739309afee06a5ad48779a2608c782961238ac
parent5bd902de9c19105c2d7d7a147600bcb9381d9cac
PropagateDownload: Don't discard the body of error message

We want to keep the body so we can get the message from it
(Issue #6459)

TestDownload::testErrorMessage did not fail because the FakeErrorReply
did not emit readyRead and did not implement bytesAvailable.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/propagatedownload.cpp
test/syncenginetestutils.h