From: Vsevolod Stakhov Date: Fri, 18 Nov 2016 14:47:41 +0000 (+0000) Subject: [Minor] Do not set shmem body for empty HTTP requests X-Git-Tag: 1.4.0~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2167fd58aaca69878ea5e28521540e5d104ad107;p=rspamd.git [Minor] Do not set shmem body for empty HTTP requests --- 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 */