aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/http.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-18 14:47:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-18 14:47:41 +0000
commit2167fd58aaca69878ea5e28521540e5d104ad107 (patch)
tree9863dd07d8c653e7a4f6a280cc800442ff4261a2 /src/libutil/http.c
parent2c165660906d2c4164fc6faa3a24bca2226c27be (diff)
downloadrspamd-2167fd58aaca69878ea5e28521540e5d104ad107.tar.gz
rspamd-2167fd58aaca69878ea5e28521540e5d104ad107.zip
[Minor] Do not set shmem body for empty HTTP requests
Diffstat (limited to 'src/libutil/http.c')
-rw-r--r--src/libutil/http.c2
1 files changed, 1 insertions, 1 deletions
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 */