]> git.saurik.com Git - apt.git/blobdiff - test/interactive-helper/aptwebserver.cc
pkgTagFile: if we have seen the end, do not try to see more
[apt.git] / test / interactive-helper / aptwebserver.cc
index 7d3589c9dbe154bc4cc40f8e96b81a854e1cc971..b7663a76aa421b34c48f2745890548b79c7dce4e 100644 (file)
@@ -546,7 +546,7 @@ void * handleClient(void * voidclient)                                      /*{{{*/
         {
            FileFd data(filename, FileFd::ReadOnly);
            std::string condition = LookupTag(*m, "If-Modified-Since", "");
-           if (condition.empty() == false)
+           if (_config->FindB("aptwebserver::support::modified-since", true) == true && condition.empty() == false)
            {
               time_t cache;
               if (RFC1123StrToTime(condition.c_str(), cache) == true &&