summaryrefslogtreecommitdiffstats
path: root/src/libutil/http.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-11 14:28:34 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-11 14:28:34 +0000
commit1ec1570822726f35f4c06a9838e63e54af827bc0 (patch)
tree3b46aa5d5144f7b0c5d095c9648ad5e577153375 /src/libutil/http.h
parentea26cfd92c60ff4b277144a7110f43e2dc2924f6 (diff)
downloadrspamd-1ec1570822726f35f4c06a9838e63e54af827bc0.tar.gz
rspamd-1ec1570822726f35f4c06a9838e63e54af827bc0.zip
Distinguish spamc/rspamc in http code.
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r--src/libutil/http.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h
index c581cb6f6..eef963f9d 100644
--- a/src/libutil/http.h
+++ b/src/libutil/http.h
@@ -50,6 +50,11 @@ struct rspamd_http_header {
};
/**
+ * Legacy spamc protocol
+ */
+#define RSPAMD_HTTP_FLAG_SPAMC 1 << 1
+
+/**
* HTTP message structure, used for requests and replies
*/
struct rspamd_http_message {
@@ -65,6 +70,7 @@ struct rspamd_http_message {
time_t date;
gint code;
enum http_method method;
+ gint flags;
};