X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_http_client.cpp;h=e756ce54f3791366c45316f60b114aeeae968448;hb=0098e12fb155644a8befc6c5c5a3d04308128e72;hp=6a268c35361592464fe07f2f490d6ae95dfeb2ca;hpb=1751c7afd96e1984f5710284cdcb245a93d9ce6c;p=metaproxy-moved-to-github.git diff --git a/src/filter_http_client.cpp b/src/filter_http_client.cpp index 6a268c3..e756ce5 100644 --- a/src/filter_http_client.cpp +++ b/src/filter_http_client.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2013 Index Data + Copyright (C) Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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);