From: Vsevolod Stakhov Date: Tue, 17 Sep 2019 14:00:16 +0000 (+0100) Subject: [Minor] Small tweaks for maps read logic X-Git-Tag: 2.0~192 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76ded6d52cd1a762280393fb79a1cde4539e00dd;p=thirdparty%2Frspamd.git [Minor] Small tweaks for maps read logic --- 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;