From 1fc9ba1ae166462266d601c50ebfe8da2fb629b3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 23 Sep 2009 19:12:03 +0400 Subject: [PATCH] * Do not read http reply when we got 304 reply code --- src/map.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map.c b/src/map.c index 147b06515..950a154d8 100644 --- a/src/map.c +++ b/src/map.c @@ -287,6 +287,10 @@ read_http_common (struct rspamd_map *map, struct http_map_data *data, struct htt msg_err ("read_http: got error reply from server %s, %d", data->host, reply->code); return FALSE; } + else if (reply->code == 304) { + /* Do not read anything */ + return FALSE; + } pos = buf; if (!data->chunked && (te = g_hash_table_lookup (reply->headers, "Transfer-Encoding")) != NULL) { if (g_ascii_strcasecmp (te, "chunked") == 0) { -- 2.39.5