Browse Source

Merge branch 'feature/UpdateUrllib3' into develop

tags/release_0.25.1
JackDandy 5 years ago
parent
commit
30be0aff40
  1. 1
      CHANGES.md
  2. 2
      lib/urllib3/_version.py
  3. 2
      lib/urllib3/connection.py

1
CHANGES.md

@ -2,6 +2,7 @@
* Change abbreviate long titles under menu tab * Change abbreviate long titles under menu tab
* Update Requests library 2.24.0 (2f70990) to 2.25.0 (03957eb) * Update Requests library 2.24.0 (2f70990) to 2.25.0 (03957eb)
* Update urllib3 1.25.11 (00f1769) to 1.26.1 (7675532)
### 0.23.0 (2020-11-11 13:30:00 UTC) ### 0.23.0 (2020-11-11 13:30:00 UTC)

2
lib/urllib3/_version.py

@ -1,2 +1,2 @@
# This file is protected via CODEOWNERS # This file is protected via CODEOWNERS
__version__ = "1.25.11" __version__ = "1.26.1"

2
lib/urllib3/connection.py

@ -228,7 +228,7 @@ class HTTPConnection(_HTTPConnection, object):
else: else:
# Avoid modifying the headers passed into .request() # Avoid modifying the headers passed into .request()
headers = headers.copy() headers = headers.copy()
if "user-agent" not in (k.lower() for k in headers): if "user-agent" not in (six.ensure_str(k.lower()) for k in headers):
headers["User-Agent"] = _get_default_user_agent() headers["User-Agent"] = _get_default_user_agent()
super(HTTPConnection, self).request(method, url, body=body, headers=headers) super(HTTPConnection, self).request(method, url, body=body, headers=headers)

Loading…
Cancel
Save