aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-08 11:12:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-08 11:12:00 +0100
commit538766fc1ecc29a2b2d49eea762ce0d2e02c7610 (patch)
treefd936d36e99cc4cadcac3d942e275e6fa5f195fb /src/libserver/protocol.c
parentb3d04213f7466f084b637d426068068468b36a08 (diff)
downloadrspamd-538766fc1ecc29a2b2d49eea762ce0d2e02c7610.tar.gz
rspamd-538766fc1ecc29a2b2d49eea762ce0d2e02c7610.zip
[Minor] Understand /scan path
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 99e965af1..6992307a2 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -134,6 +134,9 @@ rspamd_protocol_handle_url (struct rspamd_task *task,
if (CMD_CHECK (p, MSG_CMD_SYMBOLS, pathlen)) {
task->cmd = CMD_SYMBOLS;
}
+ else if (CMD_CHECK (p, MSG_CMD_SCAN, pathlen)) {
+ task->cmd = CMD_CHECK_V2;
+ }
else if (CMD_CHECK (p, MSG_CMD_SKIP, pathlen)) {
task->cmd = CMD_SKIP;
}