Browse code

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

Bogdan-Andrei Iancu authored on 28/11/2002 16:16:33
Showing 1 changed files
... ...
@@ -431,9 +431,11 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg )
431 431
 				break;
432 432
 			case HDR_CONTENTTYPE :
433 433
 				new_msg->content_type = new_hdr;
434
+				new_msg->content_type->parsed = hdr->parsed;
434 435
 				break;
435 436
 			case HDR_CONTENTLENGTH :
436 437
 				new_msg->content_length = new_hdr;
438
+				new_msg->content_length->parsed = hdr->parsed;
437 439
 				break;
438 440
 			case HDR_AUTHORIZATION :
439 441
 				new_msg->authorization = new_hdr;