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

List:       kde-commits
Subject:    =?utf-8?q?=5Bkdelibs=5D_kioslave/http=3A_Added_support_for_the_?=
From:       Dawit Alemayehu <adawit () kde ! org>
Date:       2011-04-14 16:00:56
Message-ID: 20110414160056.DD766A609B () git ! kde ! org
[Download RAW message or body]

Git commit 6c0da96a5735ca3517350791bf7b49f558837553 by Dawit Alemayehu.
Committed on 14/04/2011 at 17:57.
Pushed by adawit into branch 'master'.

Added support for the 'Do Not Track' feature.

M  +6    -1    kioslave/http/http.cpp     

http://commits.kde.org/kdelibs/6c0da96a5735ca3517350791bf7b49f558837553

diff --git a/kioslave/http/http.cpp b/kioslave/http/http.cpp
index f7ba8af..f7a5ea8 100644
--- a/kioslave/http/http.cpp
+++ b/kioslave/http/http.cpp
@@ -2479,12 +2479,17 @@ bool HTTPProtocol::sendQuery()
       header += QLatin1String("\r\n");
     }
 
+    // DoNotTrack feature...
+    if (config()->readEntry("DoNotTrack", true))
+      header += QLatin1String("DNT: 1\r\n");
+    else
+      header += QLatin1String("DNT: 0\r\n");
+
     // Remember that at least one failed (with 401 or 407) request/response
     // roundtrip is necessary for the server to tell us that it requires
     // authentication.
     // We proactively add authentication headers if we have cached credentials
     // to avoid the extra roundtrip where possible.
-    // (TODO: implement this caching)
     header += authenticationHeader();
 
     if ( m_protocol == "webdav" || m_protocol == "webdavs" )

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

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