Fix http proxy fails with yaz-client YAZ-824
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 2 Mar 2015 09:34:54 +0000 (10:34 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 2 Mar 2015 09:34:54 +0000 (10:34 +0100)
client/client.c

index 7386faa..7a782d0 100644 (file)
@@ -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)
     {