mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 15:44:44 +00:00
Send HTTP Do-Not-Track header.
This commit is contained in:
parent
e98f15933f
commit
273230d98b
2 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue