Skip to content

Commit 02cf139

Browse files
authored
SNOW-739316 Enforce content-length checking in vendored urllib3 (#1702)
Cherry-picked fd2759aa16b12b33298900c77d29b3813c6582de onto the current vendored version 1.26.15
1 parent 7fa66ba commit 02cf139

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

DESCRIPTION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
1313
- Fixed a bug in retry logic for okta authentication to refresh token.
1414
- Support `RSAPublicKey` when constructing `AuthByKeyPair` in addition to raw bytes.
1515
- Fixed a bug when connecting through SOCKS5 proxy, the attribute `proxy_header` is missing on `SOCKSProxyManager`.
16+
- Cherry-picked https://github.com/urllib3/urllib3/commit/fd2759aa16b12b33298900c77d29b3813c6582de onto vendored urllib3 (v1.26.15) to enable enforce_content_length by default.
1617
- Fixed a bug in tag generation of OOB telemetry event.
1718

19+
1820
- v3.1.0(July 31,2023)
1921

2022
- Added a feature that lets you add connection definitions to the `connections.toml` configuration file. A connection definition refers to a collection of connection parameters, for example, if you wanted to define a connection named `prod``:

src/snowflake/connector/vendored/urllib3/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def __init__(
213213
connection=None,
214214
msg=None,
215215
retries=None,
216-
enforce_content_length=False,
216+
enforce_content_length=True,
217217
request_method=None,
218218
request_url=None,
219219
auto_close=True,

0 commit comments

Comments
 (0)