mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #22450: Use "Accept: */*" in the default headers for urllib.request
This commit is contained in:
parent
c87ae806ab
commit
ae9e5f032d
2 changed files with 5 additions and 1 deletions
|
@ -1625,7 +1625,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue