summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/logging/handlers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index d1871ac..974c089 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -1180,7 +1180,9 @@ class HTTPHandler(logging.Handler):
i = host.find(":")
if i >= 0:
host = host[:i]
- h.putheader("Host", host)
+ # See issue #30904: putrequest call above already adds this header
+ # on Python 3.x.
+ # h.putheader("Host", host)
if self.method == "POST":
h.putheader("Content-type",
"application/x-www-form-urlencoded")