summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/request.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-09-09 23:44:53 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-09-09 23:44:53 (GMT)
commitb7f3c944d1d0865ce797848e3a40c3ad9435b698 (patch)
tree1cd4526e2c96a3217c2f753d477c460a49b34ae5 /Lib/urllib/request.py
parentd6c580cbcea736fa3d57d4572b970c714c988b07 (diff)
downloadcpython-b7f3c944d1d0865ce797848e3a40c3ad9435b698.zip
cpython-b7f3c944d1d0865ce797848e3a40c3ad9435b698.tar.gz
cpython-b7f3c944d1d0865ce797848e3a40c3ad9435b698.tar.bz2
Merge
Diffstat (limited to 'Lib/urllib/request.py')
-rw-r--r--Lib/urllib/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 30bf6e0..cc4f0bf 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -1686,7 +1686,7 @@ class URLopener:
self.proxies = proxies
self.key_file = x509.get('key_file')
self.cert_file = x509.get('cert_file')
- self.addheaders = [('User-Agent', self.version)]
+ self.addheaders = [('User-Agent', self.version), ('Accept', '*/*')]
self.__tempfiles = []
self.__unlink = os.unlink # See cleanup()
self.tempcache = None