[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/http
From:       Jakub Stachowski <qbast () go2 ! pl>
Date:       2009-03-14 12:47:56
Message-ID: 1237034876.547895.31057.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 939233 by qbast:

Cache tag should be created from "etag" header not "date" as required by RFC 2616 section 13.3.4.
Looks like copy&paste gone wrong.

BUG: 186534
CCMAIL: ahartmetz@gmail.com



 M  +1 -7      http.cpp  


--- trunk/KDE/kdelibs/kioslave/http/http.cpp #939232:939233
@@ -2944,18 +2944,12 @@
     }
 
     // Cache management
-    tIt = tokenizer.iterator("date");
+    tIt = tokenizer.iterator("etag");
     if (tIt.hasNext()) {
         //note QByteArray -> QString conversion will make a deep copy; we want one.
         m_request.cacheTag.etag = QString(tIt.next());
     }
 
-    tIt = tokenizer.iterator("date");
-    if (tIt.hasNext()) {
-        //note QByteArray -> QString conversion will make a deep copy; we want one.
-        m_request.cacheTag.etag = QString(tIt.next());
-    }
-
     tIt = tokenizer.iterator("expires");
     if (tIt.hasNext()) {
         expireDate = KDateTime::fromString(tIt.next(), KDateTime::RFCDate).toTime_t();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic