diff options
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index ad6edd333..531a27be7 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1718,7 +1718,7 @@ rspamd_proxy_scan_self_reply(struct rspamd_task *task) const rspamd_ftok_t *accept_hdr = rspamd_task_get_request_header(task, "Accept"); if (accept_hdr && rspamd_substring_search(accept_hdr->begin, accept_hdr->len, - "application/msgpack", sizeof("application/msgpack") - 1)) { + "application/msgpack", sizeof("application/msgpack") - 1) != -1) { ctype = "application/msgpack"; out_type = UCL_EMIT_MSGPACK; } |