diff options
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 5993da61e..a251dcd05 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -2116,7 +2116,7 @@ void rspamd_protocol_write_reply(struct rspamd_task *task, ev_tstamp timeout) 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; } |