diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-13 17:28:42 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-13 17:28:42 +0000 |
commit | eb91f13938c023c1e7cb5db4fae0f5d83ec74e1a (patch) | |
tree | 7a7460fe9fb6bb65cb15a21563884d8cb74d66a4 /src/client/rspamdclient.c | |
parent | 0e24e4a9daadde2af987f19d30f78856b0d833c6 (diff) | |
download | rspamd-eb91f13938c023c1e7cb5db4fae0f5d83ec74e1a.tar.gz rspamd-eb91f13938c023c1e7cb5db4fae0f5d83ec74e1a.zip |
[Minor] Add ability to pass filename from Rspamc
Diffstat (limited to 'src/client/rspamdclient.c')
-rw-r--r-- | src/client/rspamdclient.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c index ad801c182..490e5c369 100644 --- a/src/client/rspamdclient.c +++ b/src/client/rspamdclient.c @@ -296,6 +296,7 @@ rspamd_client_command (struct rspamd_client_connection *conn, FILE *in, rspamd_client_callback cb, gpointer ud, gboolean compressed, const gchar *comp_dictionary, + const gchar *filename, GError **err) { struct rspamd_client_request *req; @@ -431,6 +432,10 @@ rspamd_client_command (struct rspamd_client_connection *conn, } } + if (filename) { + rspamd_http_message_add_header (req->msg, "Filename", filename); + } + req->msg->url = rspamd_fstring_append (req->msg->url, "/", 1); req->msg->url = rspamd_fstring_append (req->msg->url, command, strlen (command)); |