Explorar el Código

*** empty log message ***

Mike Goslin hace 25 años
padre
commit
d779e6781f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      panda/src/downloader/downloader.cxx

+ 1 - 1
panda/src/downloader/downloader.cxx

@@ -765,6 +765,7 @@ parse_header(DownloadStatus *status) {
 
   string bufstr((char *)status->_start, status->_bytes_in_buffer);
   size_t p  = 0;
+  bool redirect = false;
   while (p < bufstr.length()) {
     // Server sends out CR LF (\r\n) as newline delimiter
     size_t nl = bufstr.find("\015\012", p);
@@ -784,7 +785,6 @@ parse_header(DownloadStatus *status) {
 
     // The first line of the response should say whether
     // got an error or not
-    bool redirect = false;
     if (status->_first_line_complete == false) {
       status->_first_line_complete = true;
       int parse_ret = parse_http_response(component);