Changeset 2883
- Timestamp:
- Aug 15, 2009 11:00:26 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test/txdata_test.c
r2638 r2883 418 418 "?X-Hdr-1=Header%201" 419 419 "&X-Empty-Hdr="); 420 pj_str_t contact; 420 421 pj_str_t pname = pj_str("x-param"); 421 422 pj_str_t hname = pj_str("X-Hdr-1"); … … 436 437 PJ_LOG(3,(THIS_FILE, " header param in URI to create request")); 437 438 439 /* Due to #930, contact argument is now parsed as Contact header, so 440 * must enclose it with <> to make it be parsed as URI. 441 */ 442 pj_ansi_snprintf(msgbuf, sizeof(msgbuf), "<%.*s>", 443 (int)target.slen, target.ptr); 444 contact.ptr = msgbuf; 445 contact.slen = strlen(msgbuf); 446 438 447 /* Create request with header param in target URI. */ 439 448 status = pjsip_endpt_create_request(endpt, &pjsip_invite_method, &target, 440 &target, &target, & target, NULL, -1,449 &target, &target, &contact, NULL, -1, 441 450 NULL, &tdata); 442 451 if (status != 0) {
Note: See TracChangeset
for help on using the changeset viewer.