diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-23 19:12:03 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-23 19:12:03 +0400 |
commit | 1fc9ba1ae166462266d601c50ebfe8da2fb629b3 (patch) | |
tree | 64bdf5e4bdde676f698fbf7128e2e5b557edf268 | |
parent | ddc5407ffec026c9432191b7c70faab0f48655a0 (diff) | |
download | rspamd-1fc9ba1ae166462266d601c50ebfe8da2fb629b3.tar.gz rspamd-1fc9ba1ae166462266d601c50ebfe8da2fb629b3.zip |
* Do not read http reply when we got 304 reply code
-rw-r--r-- | src/map.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |