[Serdev] cpl+xml mime type bug in parse_content.c
Christopher Crawford
crawford_c at pannaway.com
Thu Mar 10 19:19:20 UTC 2005
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.iptel.org/pipermail/serdev/attachments/20050310/2cb4cc40/attachment.html
More information about the Serdev
mailing list