Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b56becb commit e96ba18Copy full SHA for e96ba18
1 file changed
Lib/logging/handlers.py
@@ -1180,7 +1180,9 @@ def emit(self, record):
1180
i = host.find(":")
1181
if i >= 0:
1182
host = host[:i]
1183
- h.putheader("Host", host)
+ # See issue #30904: putrequest call above already adds this header
1184
+ # on Python 3.x.
1185
+ # h.putheader("Host", host)
1186
if self.method == "POST":
1187
h.putheader("Content-type",
1188
"application/x-www-form-urlencoded")
0 commit comments