From 76ded6d52cd1a762280393fb79a1cde4539e00dd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 17 Sep 2019 15:00:16 +0100 Subject: [PATCH] [Minor] Small tweaks for maps read logic --- src/libutil/http_connection.c | 3 ++- src/libutil/map.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libutil/http_connection.c b/src/libutil/http_connection.c index 475a09c415..6bb6aa7db3 100644 --- a/src/libutil/http_connection.c +++ b/src/libutil/http_connection.c @@ -374,7 +374,8 @@ rspamd_http_on_headers_complete (http_parser * parser) * * Hence, we skip body setup here */ - if (parser->content_length != ULLONG_MAX && parser->content_length != 0) { + if (parser->content_length != ULLONG_MAX && parser->content_length != 0 && + msg->method != HTTP_HEAD) { if (conn->max_size > 0 && parser->content_length > conn->max_size) { /* Too large message */ diff --git a/src/libutil/map.c b/src/libutil/map.c index 24dc2755af..19612f8ffe 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -295,6 +295,7 @@ http_map_finish (struct rspamd_http_connection *conn, if (msg->code == 200) { if (cbd->check) { + msg_info_map ("need to reread map from %s", cbd->bk->uri); cbd->periodic->need_modify = TRUE; /* Reset the whole chain */ cbd->periodic->cur_backend = 0; -- 2.47.3