浏览代码

- before writing to fifo, hdr body is trimed

Bogdan-Andrei Iancu 20 年之前
父节点
当前提交
a8c4b5f815
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules/tm/t_fifo.c

+ 2 - 1
modules/tm/t_fifo.c

@@ -633,8 +633,9 @@ static inline char* append2buf( char *buf, int len, struct sip_msg *req,
 						break;
 			}
 			if (hdr) {
+				trim_len( foo.len, foo.s, hdr->body);
 				buf=add2buf( buf, end, ha->title.s, ha->title.len,
-					hdr->body.s , hdr->body.len);
+					foo.s , foo.len);
 				if (!buf)
 					goto overflow_err;
 			}