Changeset 1083


Ignore:
Timestamp:
Mar 19, 2007 12:55:35 PM (12 years ago)
Author:
bennylp
Message:

Fixed ticket #188: Error parsing compact form of SIP header (thanks Tobias Söreling)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsip/sip_parser.c

    r1081 r1083  
    398398    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    399399 
    400     status = pjsip_register_hdr_parser( "Call-ID", NULL, &parse_hdr_call_id); 
     400    status = pjsip_register_hdr_parser( "Call-ID", "i", &parse_hdr_call_id); 
    401401    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    402402 
     
    404404    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    405405 
    406     status = pjsip_register_hdr_parser( "Content-Length", NULL,  
     406    status = pjsip_register_hdr_parser( "Content-Length", "l",  
    407407                                        &parse_hdr_content_len); 
    408408    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    409409 
    410     status = pjsip_register_hdr_parser( "Content-Type", NULL,  
     410    status = pjsip_register_hdr_parser( "Content-Type", "c",  
    411411                                        &parse_hdr_content_type); 
    412412    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
Note: See TracChangeset for help on using the changeset viewer.