<message>M</message>
</filter>
<filter type="http_file">
- <mimetypes>/etc/mime.types</mimetypes>
- <area>
- <documentroot>.</documentroot>
- <prefix>/etc</prefix>
- </area>
+ <mimetypes>/etc/mime.types</mimetypes>
+ <area>
+ <documentroot>.</documentroot>
+ <prefix>/etc</prefix>
+ </area>
+ <area>
+ <documentroot>.</documentroot>
+ <prefix>/raw</prefix>
+ <raw>true</raw>
+ </area>
</filter>
<filter type="http_rewrite1">
<replace content-type="text/html" pattern="YAZ" replacement="yaz"/>
fclose(f);
Z_GDU *gdu = 0;
+ mp::odr decode(ODR_DECODE);
if (raw)
{
- odr_setbuf(o, (char *) fbuf, sz, 0);
- int r = z_GDU(o, &gdu, 0, 0);
+ odr_setbuf(decode, (char *) fbuf, sz, 0);
+ int r = z_GDU(decode, &gdu, 0, 0);
if (!r)
{
- Z_GDU *gdu = o.create_HTTP_Response(session, req, 500);
- package.response() = gdu;
- fclose(f);
- return;
+ gdu = o.create_HTTP_Response(session, req, 500);
}
}
else
element mp:mimetypes { xsd:string },
element mp:area {
element mp:documentroot { xsd:string },
- element mp:prefix { xsd:string }
+ element mp:prefix { xsd:string },
+ element mp:raw { xsd:boolean }?
}*