Ver código fonte

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

Bogdan-Andrei Iancu 23 anos atrás
pai
commit
2ca7436a4b
1 arquivos alterados com 2 adições e 0 exclusões
  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;