[Serdev] cpl+xml mime type bug in parse_content.c

Bogdan-Andrei IANCU iancu at fokus.fraunhofer.de
Mon Mar 14 20:41:41 UTC 2005


you are right - I fixed it on CVS.

thanks for report,
bogdan


Christopher Crawford wrote:

> There is a in parser/parse_content.c with the latest code causing 
> application/cpl+xml mime types in the Accept: header to fail.
>
> The branch for mapping node ‘p’ to either ‘i’ or ‘l’ should be 20 and 
> not 29. Using 29, the type is returned as 0xff or unknown, preventing 
> clients from downloading cpl scripts when using the specified mime type.
>
> <snippet from parser/parse_content.c>
>
> Corrected number:
>
> static type_node_t subtype_tree[] = {
>
> {'p',SUBTYPE_UNKNOWN,2,13},
>
> .
>
> .
>
> .
>
> {'c',SUBTYPE_UNKNOWN,1,25},
>
> {'p',SUBTYPE_UNKNOWN,2,-1},
>
> {'i',SUBTYPE_UNKNOWN,1,20}, <<<<< change 29 to 20 here
>
> {'m',SUBTYPE_CPIM,0,-1},
>
> {'l',SUBTYPE_UNKNOWN,1,-1},
>
> Regards,
>
> Chris
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serdev mailing list
>serdev at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serdev
>  
>




More information about the Serdev mailing list