From d1b8a1c1647ebb00401f6b6e8f992cca7480b5f9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 15 Jan 2014 11:05:53 +0100 Subject: [PATCH] ZOOM: For redirect, reconnect always YAZ-722 The problem is that some HTTP proxies, squid for one, do not allow connection to be re-used. --- src/zoom-c.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } -- 1.7.10.4