[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kioslave/http
From: Dawit Alemayehu <adawit () kde ! org>
Date: 2011-01-23 8:20:21
Message-ID: 20110123082021.78B48AC8B9 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1216413 by adawit:
Cosmetic changes
M +2 -2 http.cpp
--- trunk/KDE/kdelibs/kioslave/http/http.cpp #1216412:1216413
@@ -2393,7 +2393,7 @@
header += QLatin1String("If-None-Match: ")+m_request.cacheTag.etag+QLatin1String("\r\n");
if (m_request.cacheTag.lastModifiedDate != -1) {
- QString httpDate = formatHttpDate(m_request.cacheTag.lastModifiedDate);
+ const QString httpDate = formatHttpDate(m_request.cacheTag.lastModifiedDate);
header += QLatin1String("If-Modified-Since: ") + httpDate + QLatin1String("\r\n");
setMetaData(QLatin1String("modified"), httpDate);
}
@@ -4498,7 +4498,7 @@
}
Q_ASSERT(policy == CC_Verify);
time_t currentDate = time(0);
- if ((servedDate != -1 && currentDate > servedDate + maxCacheAge) ||
+ if ((servedDate != -1 && currentDate > (servedDate + maxCacheAge)) ||
(expireDate != -1 && currentDate > expireDate)) {
return ValidateCached;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic