Browse code

MFt: Handle HDR_SERVER_T.

Maxim Sobolev authored on 01/05/2007 22:03:16
Showing 1 changed files
... ...
@@ -373,6 +373,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg, int *sip_msg_len )
373 373
 		case HDR_PRIORITY_T:
374 374
 		case HDR_SUBJECT_T:
375 375
 		case HDR_USERAGENT_T:
376
+		case HDR_SERVER_T:
376 377
 		case HDR_ACCEPTDISPOSITION_T:
377 378
 		case HDR_CONTENTDISPOSITION_T:
378 379
 		case HDR_DIVERSION_T:
... ...
@@ -736,6 +737,11 @@ do { \
736 737
 				new_msg->user_agent = new_hdr;
737 738
 			}
738 739
 			break;
740
+		case HDR_SERVER_T:
741
+			if (!HOOK_SET(server)) {
742
+				new_msg->server = new_hdr;
743
+			}
744
+			break;
739 745
 		case HDR_ACCEPTDISPOSITION_T:
740 746
 			if (!HOOK_SET(accept_disposition)) {
741 747
 				new_msg->accept_disposition = new_hdr;