Commit ec3dfdee authored by Fred Drake's avatar Fred Drake

Only write out one blank line before the request data.

This closes SF patch #419459.
parent d153a980
......@@ -286,7 +286,7 @@ class URLopener:
for args in self.addheaders: apply(h.putheader, args)
h.endheaders()
if data is not None:
h.send(data + '\r\n')
h.send(data)
errcode, errmsg, headers = h.getreply()
fp = h.getfile()
if errcode == 200:
......@@ -364,7 +364,7 @@ class URLopener:
for args in self.addheaders: apply(h.putheader, args)
h.endheaders()
if data is not None:
h.send(data + '\r\n')
h.send(data)
errcode, errmsg, headers = h.getreply()
fp = h.getfile()
if errcode == 200:
......
......@@ -809,7 +809,7 @@ class AbstractHTTPHandler(BaseHandler):
h.putheader(k, v)
h.endheaders()
if req.has_data():
h.send(data + '\r\n')
h.send(data)
code, msg, hdrs = h.getreply()
fp = h.getfile()
......
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