Unverified Kaydet (Commit) e96ba183 authored tarafından Vinay Sajip's avatar Vinay Sajip Kaydeden (comit) GitHub

bpo-30904: Removed duplicated Host: header. (#4465)

üst b56becb3
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment