From 2167fd58aaca69878ea5e28521540e5d104ad107 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 18 Nov 2016 14:47:41 +0000 Subject: [PATCH] [Minor] Do not set shmem body for empty HTTP requests --- src/libutil/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index ba0d5117c..4f1ce1ade 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -650,7 +650,7 @@ rspamd_http_on_headers_complete (http_parser * parser) * * Hence, we skip body setup here */ - if (parser->content_length != ULLONG_MAX) { + if (parser->content_length != ULLONG_MAX && parser->content_length != 0) { if (conn->max_size > 0 && parser->content_length > conn->max_size) { /* Too large message */ -- 2.39.5