This commit is contained in:
Raymond Hettinger 2016-09-09 16:44:53 -07:00
parent d6c580cbce
commit b7f3c944d1
1 changed files with 1 additions and 1 deletions

View File

@ -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