Преглед на файлове

*** empty log message ***

Mike Goslin преди 25 години
родител
ревизия
d779e6781f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);
   string bufstr((char *)status->_start, status->_bytes_in_buffer);
   size_t p  = 0;
   size_t p  = 0;
+  bool redirect = false;
   while (p < bufstr.length()) {
   while (p < bufstr.length()) {
     // Server sends out CR LF (\r\n) as newline delimiter
     // Server sends out CR LF (\r\n) as newline delimiter
     size_t nl = bufstr.find("\015\012", p);
     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
     // The first line of the response should say whether
     // got an error or not
     // got an error or not
-    bool redirect = false;
     if (status->_first_line_complete == false) {
     if (status->_first_line_complete == false) {
       status->_first_line_complete = true;
       status->_first_line_complete = true;
       int parse_ret = parse_http_response(component);
       int parse_ret = parse_http_response(component);