X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-sru.c;h=105970fae1f4e8a6b4619ec04fc728d62b341457;hb=108a41cd16f10f21aad2bcdb74525ec4d5c94b34;hp=d6ce28df083fb643a756486f23c35f63e373f3e7;hpb=0f9a136e988a7f9813a9a6c8f6e014c4e2653e30;p=yaz-moved-to-github.git diff --git a/src/zoom-sru.c b/src/zoom-sru.c index d6ce28d..105970f 100644 --- a/src/zoom-sru.c +++ b/src/zoom-sru.c @@ -36,12 +36,10 @@ static zoom_ret send_srw(ZOOM_connection c, Z_SRW_PDU *sr) Z_GDU *gdu; ZOOM_Event event; const char *database = ZOOM_options_get(c->options, "databaseName"); - char *fdatabase = 0; - - if (database) - fdatabase = yaz_encode_sru_dbpath_odr(c->odr_out, database); - gdu = z_get_HTTP_Request_host_path(c->odr_out, c->host_port, - fdatabase ? fdatabase : c->path); + + gdu = z_get_HTTP_Request_uri(c->odr_out, c->host_port, + database, + c->proxy ? 1 : 0); if (c->sru_mode == zoom_sru_get) {