Преглед на файлове

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

Bogdan-Andrei Iancu преди 23 години
родител
ревизия
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;