X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fclient.c;h=31fd6f8f8321b0ea4ff2c04588e73b0e733ae1bb;hp=7386faaf80d5e388104df581ec593d09db8202ae;hb=8fb781d91bd3f8bd73dc30b4a1bdc23a69120d87;hpb=bfe768e3b0cf959ed9982a7b6ff6dc9e906820f4 diff --git a/client/client.c b/client/client.c index 7386faa..31fd6f8 100644 --- a/client/client.c +++ b/client/client.c @@ -1320,7 +1320,7 @@ static int send_srw_host_path(Z_SRW_PDU *sr, const char *host_port, const char *charset = negotiationCharset; Z_GDU *gdu; - gdu = z_get_HTTP_Request_host_path(out, host_port, path); + gdu = z_get_HTTP_Request_uri(out, host_port, path, yazProxy ? 1 : 0); if (auth) { @@ -1363,8 +1363,7 @@ static int send_srw_host_path(Z_SRW_PDU *sr, const char *host_port, static int send_srw(Z_SRW_PDU *sr) { - char *path = yaz_encode_sru_dbpath_odr(out, databaseNames[0]); - return send_srw_host_path(sr, wrbuf_cstr(cur_host), path); + return send_srw_host_path(sr, wrbuf_cstr(cur_host), databaseNames[0]); } static int send_SRW_redirect(const char *uri)