The Transfer-Encoding should not be relay'ed back to frontend_net
etc.. This will cause a bad response.
if (http_response)
{
res_gdu = o.create_HTTP_Response(package.session(), hreq, 200);
if (http_response)
{
res_gdu = o.create_HTTP_Response(package.session(), hreq, 200);
+ Z_HTTP_Header **hp = &http_response->headers;
+ while (*hp)
+ {
+ if (!yaz_matchstr((*hp)->name, "Transfer-Encoding"))
+ *hp = (*hp)->next;
+ else
+ hp = &(*hp)->next;
+ }
res_gdu->u.HTTP_Response = http_response;
}
else
res_gdu->u.HTTP_Response = http_response;
}
else