From 343341e1422251a863149cad515b955aae395569 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 15 Sep 2018 19:34:53 +0900 Subject: BaseJob::rawData: only add "truncated" when actually truncated --- lib/jobs/basejob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/jobs/basejob.cpp') diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index f9628c19..979fa431 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -514,7 +514,7 @@ BaseJob::Status BaseJob::status() const QByteArray BaseJob::rawData(int bytesAtMost) const { - return bytesAtMost > 0 ? + return bytesAtMost > 0 && d->rawResponse.size() > bytesAtMost ? d->rawResponse.left(bytesAtMost) + "...(truncated)" : d->rawResponse; } -- cgit v1.2.3