aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-23 19:12:03 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-23 19:12:03 +0400
commit1fc9ba1ae166462266d601c50ebfe8da2fb629b3 (patch)
tree64bdf5e4bdde676f698fbf7128e2e5b557edf268
parentddc5407ffec026c9432191b7c70faab0f48655a0 (diff)
downloadrspamd-1fc9ba1ae166462266d601c50ebfe8da2fb629b3.tar.gz
rspamd-1fc9ba1ae166462266d601c50ebfe8da2fb629b3.zip
* Do not read http reply when we got 304 reply code
-rw-r--r--src/map.c4
1 files changed, 4 insertions, 0 deletions
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) {