Browse Source

[Minor] Small fixes to compressed requests

tags/1.4.0
Vsevolod Stakhov 7 years ago
parent
commit
896e9ed731
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/libserver/task.c

+ 5
- 1
src/libserver/task.c View File

@@ -531,7 +531,11 @@ rspamd_task_load_message (struct rspamd_task *task,
rspamd_mempool_add_destructor (task->task_pool, g_free, zout.dst);
task->msg.begin = zout.dst;
task->msg.len = zout.pos;
task->flags = RSPAMD_TASK_FLAG_COMPRESSED;
task->flags |= RSPAMD_TASK_FLAG_COMPRESSED;

msg_info_task ("loaded message from zstd compressed stream; "
"compressed: %ul; uncompressed: %ul",
(gulong)zin.size, (gulong)zout.pos);

}
else {

Loading…
Cancel
Save