[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.2/kdelibs/kioslave/http
From: Jakub Stachowski <qbast () go2 ! pl>
Date: 2009-03-14 17:08:40
Message-ID: 1237050520.828227.17733.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 939328 by qbast:
Backport of commit 939233:
Cache tag should be created from "etag" header, not "date".
Probably botched copy&paste.
M +1 -7 http.cpp
--- branches/KDE/4.2/kdelibs/kioslave/http/http.cpp #939327:939328
@@ -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