]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Print the real version of rspamd in Server header
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Aug 2016 14:33:26 +0000 (15:33 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Aug 2016 14:33:26 +0000 (15:33 +0100)
src/libutil/http.c

index d7f10d20f6231b0fcbfa72521d0cbd12f15b4a00..931ed5ed84c7e995b2937e6cb3a4ae2baa9be3cb 100644 (file)
@@ -1677,7 +1677,7 @@ rspamd_http_message_write_header (const gchar* mime_type, gboolean encrypted,
                                                                "Date: %s\r\n"
                                                                "Content-Length: %z\r\n"
                                                                "Content-Type: %s", /* NO \r\n at the end ! */
-                                                               msg->code, msg->status, "rspamd/1.3.0", datebuf,
+                                                               msg->code, msg->status, "rspamd/" RVERSION, datebuf,
                                                                bodylen, mime_type);
                                enclen += meth_len;
                                /* External reply */
@@ -1699,7 +1699,7 @@ rspamd_http_message_write_header (const gchar* mime_type, gboolean encrypted,
                                                                "Date: %s\r\n"
                                                                "Content-Length: %z\r\n"
                                                                "Content-Type: %s\r\n",
-                                                               msg->code, msg->status, "rspamd/1.3.0", datebuf,
+                                                               msg->code, msg->status, "rspamd/" RVERSION, datebuf,
                                                                bodylen, mime_type);
                        }
                }