X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_http_client.cpp;h=2e6a38f43a0d9b838414274eb6184de75dd468da;hb=55e06106b63485b77b5b3c114c39b79e4f23168a;hp=6a268c35361592464fe07f2f490d6ae95dfeb2ca;hpb=8ff69c27be66eb65b0b5fd6afa4de1a3556d7344;p=metaproxy-moved-to-github.git diff --git a/src/filter_http_client.cpp b/src/filter_http_client.cpp index 6a268c3..2e6a38f 100644 --- a/src/filter_http_client.cpp +++ b/src/filter_http_client.cpp @@ -111,7 +111,10 @@ void yf::HTTPClient::Rep::proxy(mp::Package &package) } else { - res_gdu = o.create_HTTP_Response(package.session(), hreq, 404); + res_gdu = o.create_HTTP_Response_details( + package.session(), + hreq, 502, + yaz_url_get_error(yaz_url)); } package.response() = res_gdu; yaz_url_destroy(yaz_url);