summaryrefslogtreecommitdiff
path: root/Servers/ProtocolServer/Download.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Servers/ProtocolServer/Download.cpp')
-rw-r--r--Servers/ProtocolServer/Download.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Servers/ProtocolServer/Download.cpp b/Servers/ProtocolServer/Download.cpp
index d6fe75bef4..a2d6904ce0 100644
--- a/Servers/ProtocolServer/Download.cpp
+++ b/Servers/ProtocolServer/Download.cpp
@@ -31,6 +31,12 @@ void Download::stop()
all_downloads().remove(m_id);
}
+void Download::set_payload(const ByteBuffer& payload)
+{
+ m_payload = payload;
+ m_total_size = payload.size();
+}
+
void Download::did_finish(bool success)
{
if (!m_client) {