]> source.dussan.org Git - rspamd.git/commitdiff
Fix headers addition.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 8 May 2015 12:56:53 +0000 (13:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 8 May 2015 12:56:53 +0000 (13:56 +0100)
src/libutil/http.c

index 1b0e31ac2cb1800e1e397401f1f761b6cc90f426..f64c9ba6ab888cbf548deb4ba3b3c228fe1599fd 100644 (file)
@@ -1504,8 +1504,8 @@ rspamd_http_message_add_header (struct rspamd_http_message *msg,
                hdr = g_slice_alloc (sizeof (struct rspamd_http_header));
                nlen = strlen (name);
                vlen = strlen (value);
-               hdr->combined = g_string_sized_new (nlen + vlen + 2);
-               rspamd_printf_gstring (hdr->combined, "%s: %s");
+               hdr->combined = g_string_sized_new (nlen + vlen + 4);
+               rspamd_printf_gstring (hdr->combined, "%s: %s\r\n", name, value);
                hdr->value = g_slice_alloc (sizeof (GString));
                hdr->name = g_slice_alloc (sizeof (GString));
                hdr->name->str = hdr->combined->str;