diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-28 15:11:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-28 15:11:28 +0100 |
commit | 1cd27976e4e3649ba89eb537092747cae1ba079b (patch) | |
tree | b45f377a0b694adf2ab39cd97a44e7c1a7e06123 /src/libstat | |
parent | 4d6ff942ea5236dc0099e86db01eddfb3c0a121a (diff) | |
download | rspamd-1cd27976e4e3649ba89eb537092747cae1ba079b.tar.gz rspamd-1cd27976e4e3649ba89eb537092747cae1ba079b.zip |
Use headers name.
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/stat_process.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index a3f8d8a73..ae15d7ec0 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -57,6 +57,11 @@ rspamd_stat_tokenize_header (struct rspamd_task *task, if (rh != NULL) { LL_FOREACH (rh, cur) { + if (cur->name != NULL) { + str.begin = cur->name; + str.len = strlen (cur->name); + g_array_append_val (ar, str); + } if (cur->decoded != NULL) { str.begin = cur->decoded; str.len = strlen (cur->decoded); |