Commit df6670f7 authored by Laurent Montel's avatar Laurent Montel 😁

Astyle kdelibs

parent 85b9dfdc
......@@ -330,7 +330,7 @@ AdBlockCustomList::AdBlockCustomList(QObject *parent)
void AdBlockCustomList::loadSubscription(const QStringList &disabledRules)
{
#if 0
#if 0
// DuckDuckGo ad whitelist rules
// They cannot be removed, but can be disabled.
// Please consider not disabling them. Thanks!
......
......@@ -15,7 +15,6 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "donottrackpluginurlinterceptortest.h"
#include "../donottrackpluginurlinterceptor.h"
#include <QTest>
......
......@@ -31,6 +31,7 @@ DoNotTrackInterceptorInterface::~DoNotTrackInterceptorInterface()
void DoNotTrackInterceptorInterface::interceptRequest(QWebEngineUrlRequestInfo &info)
{
if (DoNotTrackSettings::doNotTrack())
if (DoNotTrackSettings::doNotTrack()) {
info.setHttpHeader(QByteArrayLiteral("DNT"), QByteArrayLiteral("1"));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment