aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r--lib/jobs/basejob.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index 2a6705b8..607a6c04 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -509,9 +509,10 @@ BaseJob::Status BaseJob::status() const
return d->status;
}
-QByteArray BaseJob::rawData() const
+QByteArray BaseJob::rawData(int bytesAtMost) const
{
- return d->rawResponse;
+ return bytesAtMost > 0 ?
+ d->rawResponse.left(bytesAtMost) + "...(truncated)" : d->rawResponse;
}
QString BaseJob::statusCaption() const