]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Small tweaks for maps read logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Sep 2019 14:00:16 +0000 (15:00 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Sep 2019 14:00:16 +0000 (15:00 +0100)
src/libutil/http_connection.c
src/libutil/map.c

index 475a09c41579c34f2ec44648e82f95d1b00cfc45..6bb6aa7db38a1b1b6574b1a0c2b9bcedb655f903 100644 (file)
@@ -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 */
index 24dc2755af0c7795e56b9052c89a978deb31b995..19612f8ffe83cadd2f5ec78a85781f64af2b6b1f 100644 (file)
@@ -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;