From 9458ed77abb91bcf2df5400c6c3ac57a1f43ddbe Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 20 May 2012 16:29:57 +0000 Subject: Add support for sending DoNotTrack header. svn path=/trunk/netsurf/; revision=13928 --- content/fetchers/curl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content') diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index 6b94390d4..4c19ab4f6 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -424,6 +424,10 @@ void * fetch_curl_setup(struct fetch *parent_fetch, nsurl *url, APPEND(fetch->headers, s); } + if (nsoption_bool(do_not_track) == true) { + APPEND(fetch->headers, "DNT: 1"); + } + /* And add any headers specified by the caller */ for (i = 0; headers[i] != NULL; i++) { APPEND(fetch->headers, headers[i]); -- cgit v1.2.3