redirect location is cut off by some proxies

This commit is contained in:
David Rose 2002-10-08 04:13:08 +00:00
parent ceaafbdeb5
commit 3354ce3045

View File

@ -897,7 +897,7 @@ parse_header(DownloadStatus *status) {
} }
} else if (redirect == true && tline == "Location") { } else if (redirect == true && tline == "Location") {
tline = component.substr(cpos + 2, string::npos); tline = component.substr(cpos + 1, string::npos);
downloader_cat.error() downloader_cat.error()
<< "Got redirect to " << tline << endl; << "Got redirect to " << tline << endl;
return EU_error_abort; return EU_error_abort;