diff options
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index b4ddde839..4f4627351 100644 --- a/src/message.c +++ b/src/message.c @@ -588,6 +588,10 @@ process_raw_headers (struct worker_task *task) } } } + /* Strip last space that can be added by \r\n parsing */ + if (*(tp - 1) == ' ') { + tp --; + } *tp = '\0'; new->value = tmp; task->raw_headers_list = g_list_prepend (task->raw_headers_list, new); |