Avoid appending database for SRU host because it's now handled by ZOOM.
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 24 Oct 2008 14:31:16 +0000 (16:31 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 24 Oct 2008 14:31:16 +0000 (16:31 +0200)
src/connection.c

index fac727b..528fef4 100644 (file)
@@ -398,16 +398,7 @@ static int connection_connect(struct connection *con)
     if (sru && *sru)
         strcpy(ipport, "http://");
     strcat(ipport, host->ipport);
-    /* deal with SRU path here because databaseName option is not read in
-       ZOOM in SRU mode */
-    if (sru && *sru)
-    {
-        if (*sdb->database->databases[0])
-        {
-            strcat(ipport, "/");
-            strcat(ipport, sdb->database->databases[0]);
-        }
-    }
+
     ZOOM_connection_connect(link, ipport, 0);
     
     con->link = link;