Ignore:
Timestamp:
Oct 13, 2010 9:41:37 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1147: Bug in parsing multipart message bodies (thanks Johan Lantz for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/multipart_test.c

    r3244 r3340  
    117117        init_media_type(&mt, h_content_type, h_content_subtype, boundary); 
    118118 
    119         if (pjsip_media_type_cmp(&ctype_hdr->media, &mt) != 0) 
     119        if (pjsip_media_type_cmp(&ctype_hdr->media, &mt, 2) != 0) 
    120120            return -20; 
    121121 
     
    154154    /* Check content-type: "multipart/mixed;boundary=12345" */ 
    155155    init_media_type(&mt, "multipart", "mixed", "12345"); 
    156     if (pjsip_media_type_cmp(&body->content_type, &mt) != 0) 
     156    if (pjsip_media_type_cmp(&body->content_type, &mt, 2) != 0) 
    157157        return -200; 
    158158 
Note: See TracChangeset for help on using the changeset viewer.