projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ff69c2
)
http_client: better diagnostics MP-455
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 9 Jul 2013 13:05:54 +0000
(15:05 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 9 Jul 2013 13:05:54 +0000
(15:05 +0200)
src/filter_http_client.cpp
patch
|
blob
|
history
diff --git
a/src/filter_http_client.cpp
b/src/filter_http_client.cpp
index
6a268c3
..
2e6a38f
100644
(file)
--- 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);