diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-17 15:00:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-17 15:00:16 +0100 |
commit | 76ded6d52cd1a762280393fb79a1cde4539e00dd (patch) | |
tree | 9014344b23f3ff67f45036754ddb981017cd8e23 | |
parent | 35a0a7e2e02a8b35da0d02f94522aa1294d4da9d (diff) | |
download | rspamd-76ded6d52cd1a762280393fb79a1cde4539e00dd.tar.gz rspamd-76ded6d52cd1a762280393fb79a1cde4539e00dd.zip |
[Minor] Small tweaks for maps read logic
-rw-r--r-- | src/libutil/http_connection.c | 3 | ||||
-rw-r--r-- | src/libutil/map.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/http_connection.c b/src/libutil/http_connection.c index 475a09c41..6bb6aa7db 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 24dc2755a..19612f8ff 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; |