Both "HTTP/1.0 304 Not Modified" and "HTTP/1.0 304" are possible in HTTP responces. diff -urNp apt-0.5.15lorg3.95.git416.old/methods/http.cc apt-0.5.15lorg3.95.git416/methods/http.cc --- apt-0.5.15lorg3.95.git416.old/methods/http.cc 2008-02-22 19:22:09.000000000 +0200 +++ apt-0.5.15lorg3.95.git416/methods/http.cc 2009-09-17 08:50:34.000000000 +0300 @@ -515,14 +515,14 @@ bool ServerState::HeaderLine(string Line if (Line[4] == '/') { if (sscanf(Line.c_str(),"HTTP/%u.%u %u %[^\n]",&Major,&Minor, - &Result,Code) != 4) + &Result,Code) < 3) return _error->Error(_("The http server sent an invalid reply header")); } else { Major = 0; Minor = 9; - if (sscanf(Line.c_str(),"HTTP %u %[^\n]",&Result,Code) != 2) + if (sscanf(Line.c_str(),"HTTP %u %[^\n]",&Result,Code) < 1) return _error->Error(_("The http server sent an invalid reply header")); }