diff options
author | Josh Rickmar <jrick@devio.us> | 2012-07-25 16:42:05 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-07-25 16:42:05 -0400 |
commit | 0f9deb0a3dcf13486bde70ab797efe80c3653361 (patch) | |
tree | db4662a2af4a7af324d822e664bee19b34837b65 /xombrero.c | |
parent | 5ef2a7e302a7460d86208083b93a392fd7106176 (diff) | |
download | xombrero-0f9deb0a3dcf13486bde70ab797efe80c3653361.tar.gz |
Implement a do_not_track feature to set the Do Not Track HTTP header.
Diffstat (limited to 'xombrero.c')
-rw-r--r-- | xombrero.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xombrero.c b/xombrero.c index 71ba37b..f40d65c 100644 --- a/xombrero.c +++ b/xombrero.c @@ -4940,6 +4940,9 @@ webview_rrs_cb(WebKitWebView *wv, WebKitWebFrame *wf, WebKitWebResource *res, } } + if (do_not_track) + soup_message_headers_append(msg->request_headers, "DNT", "1"); + /* Round-robin through HTTP Accept headers if any have been set */ if (!RB_EMPTY(&ha_list)) { accept = soup_message_headers_get_list(msg->request_headers, |