Kaydet (Commit) b071a5e8 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Vinay Sajip

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

(cherry picked from commit e96ba183)
üst 65dffe58
......@@ -1183,7 +1183,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