QNetworkDiskCache: Do not store set-cookie headers of the response in disk cache.

The cookies may contain sensitive information. so we should not store cookies in disk cache.

Task-number: QTBUG-42546
Change-Id: I6331bdd766445af41f55bfaf0e9132b75dd7957f
Reviewed-by: Jeongmin Kim <jm86.kim@lge.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Jeongmin Kim 2014-11-11 08:49:25 +09:00
parent a31b75b766
commit 741dd3da33
1 changed files with 3 additions and 0 deletions

View File

@ -1399,6 +1399,9 @@ QNetworkCacheMetaData QNetworkReplyHttpImplPrivate::fetchCacheMetaData(const QNe
if (hop_by_hop)
continue;
if (header == "set-cookie")
continue;
// for 4.6.0, we were planning to not store the date header in the
// cached resource; through that we planned to reduce the number
// of writes to disk when using a QNetworkDiskCache (i.e. don't