Browse Source

redirect location is cut off by some proxies

David Rose 23 years ago
parent
commit
3354ce3045
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/downloader/downloader.cxx

+ 1 - 1
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;