Send HTTP Do-Not-Track header.

This commit is contained in:
Bastian Kleineidam 2012-09-14 22:41:38 +02:00
parent e98f15933f
commit 273230d98b
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@ Features:
Changes:
- doc: Mention 7-zip to extract the .tar.xz under Windows.
Closes: SF bug #3564733
- checking: Send a HTTP Do-Not-Track header.
Fixes:
- logging: Close logger properly on I/O errors.

View file

@ -555,6 +555,7 @@ class HttpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport):
self.aggregate.config["useragent"])
self.url_connection.putheader("Accept-Encoding",
"gzip;q=1.0, deflate;q=0.9, identity;q=0.5")
self.url_connection.putheader("DNT", "1")
if self.aggregate.config['sendcookies']:
self.send_cookies()
self.url_connection.endheaders()