X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-c.c;h=93fb07091087619b6428d2238b0c092e67c53f25;hp=331f54453118d1d1a7a037cef69757b82b30fff6;hb=08cbe0ceed43df90c48a5863de2f1b72cca67cb2;hpb=3bfb3813869cfa6d6e199bf7a24ebd8e300054be diff --git a/src/zoom-c.c b/src/zoom-c.c index 331f544..93fb070 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1559,11 +1559,8 @@ static void handle_http(ZOOM_connection c, Z_HTTP_Response *hres) int host_change = 0; location = yaz_check_location(c->odr_in, c->host_port, location, &host_change); - if (host_change) - { - if (do_connect_host(c, location) == zoom_complete) - return; /* connect failed.. */ - } + if (do_connect_host(c, location) == zoom_complete) + return; /* connect failed.. */ send_HTTP_redirect(c, location); return; }