Просмотр исходного кода

sip_cloner extended in order to clone also the parsed values of content-type
and content-length headers

Bogdan-Andrei Iancu 23 лет назад
Родитель
Сommit
2ca7436a4b
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      modules/tm/sip_msg.c

+ 2 - 0
modules/tm/sip_msg.c

@@ -431,9 +431,11 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
 				break;
 			case HDR_CONTENTTYPE :
 				new_msg->content_type = new_hdr;
+				new_msg->content_type->parsed = hdr->parsed;
 				break;
 			case HDR_CONTENTLENGTH :
 				new_msg->content_length = new_hdr;
+				new_msg->content_length->parsed = hdr->parsed;
 				break;
 			case HDR_AUTHORIZATION :
 				new_msg->authorization = new_hdr;