aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-08 13:56:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-08 13:56:53 +0100
commitdaa86ed28a8cd6b657f7e02c33c01d2139e9e1fb (patch)
treec0379555f77d7b087c0c3cb062d9e18e4c848270 /src
parent621b20704c789044c3b0791dc4af227d560d3232 (diff)
downloadrspamd-daa86ed28a8cd6b657f7e02c33c01d2139e9e1fb.tar.gz
rspamd-daa86ed28a8cd6b657f7e02c33c01d2139e9e1fb.zip
Fix headers addition.
Diffstat (limited to 'src')
-rw-r--r--src/libutil/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 1b0e31ac2..f64c9ba6a 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -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;