Issue #16833: In http.client.HTTPConnection, do not concatenate the request headers and body when the payload exceeds 16 KB, since it can consume more memory for no benefit.
Patch by Benno Leslie.
diff --git a/Misc/ACKS b/Misc/ACKS
index 1f0b1e0..9a7b3a7 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -705,6 +705,7 @@
Tshepang Lekhonkhobe
Marc-André Lemburg
John Lenton
+Benno Leslie
Christopher Tur Lesniewski-Laas
Alain Leufroy
Mark Levinson
diff --git a/Misc/NEWS b/Misc/NEWS
index 161d4fd..eaa8cfc 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -199,6 +199,10 @@
Library
-------
+- Issue #16833: In http.client.HTTPConnection, do not concatenate the request
+ headers and body when the payload exceeds 16 KB, since it can consume more
+ memory for no benefit. Patch by Benno Leslie.
+
- Issue #16541: tk_setPalette() now works with keyword arguments.
- Issue #16820: In configparser, `parser.popitem()` no longer raises ValueError.