diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-05-20 16:29:57 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-05-20 16:29:57 +0000 |
commit | 9458ed77abb91bcf2df5400c6c3ac57a1f43ddbe (patch) | |
tree | 95cebe7f068f6f643a9fbbaa1da4fb9c5524e6c8 /content | |
parent | 8ffc6439a75f54ed77aa770c464297c80cedb195 (diff) | |
download | netsurf-9458ed77abb91bcf2df5400c6c3ac57a1f43ddbe.tar.gz netsurf-9458ed77abb91bcf2df5400c6c3ac57a1f43ddbe.tar.bz2 |
Add support for sending DoNotTrack header.
svn path=/trunk/netsurf/; revision=13928
Diffstat (limited to 'content')
-rw-r--r-- | content/fetchers/curl.c | 4 |
1 files changed, 4 insertions, 0 deletions
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]); |