From: Vsevolod Stakhov Date: Wed, 3 Aug 2016 14:33:26 +0000 (+0100) Subject: [Minor] Print the real version of rspamd in Server header X-Git-Tag: 1.3.2~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d05786a493acf6f747a52b7287ee506400075d55;p=rspamd.git [Minor] Print the real version of rspamd in Server header --- diff --git a/src/libutil/http.c b/src/libutil/http.c index d7f10d20f..931ed5ed8 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -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); } }