From 3354ce304552aec0bd432fd22290b776c92fe2f5 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 8 Oct 2002 04:13:08 +0000 Subject: [PATCH] redirect location is cut off by some proxies --- panda/src/downloader/downloader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/downloader/downloader.cxx b/panda/src/downloader/downloader.cxx index 2439ad72fd..8be838f1b8 100644 --- a/panda/src/downloader/downloader.cxx +++ b/panda/src/downloader/downloader.cxx @@ -897,7 +897,7 @@ parse_header(DownloadStatus *status) { } } else if (redirect == true && tline == "Location") { - tline = component.substr(cpos + 2, string::npos); + tline = component.substr(cpos + 1, string::npos); downloader_cat.error() << "Got redirect to " << tline << endl; return EU_error_abort;