diff options
author | Fred Drake <fdrake@acm.org> | 2001-07-04 05:18:29 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-07-04 05:18:29 (GMT) |
commit | ec3dfdee6a09e1ad8d4e319876d0cf7691397245 (patch) | |
tree | 267024e9c1e3cb32124c6ff1642f8f0ddf105aff /Lib | |
parent | d153a980e5fd13e6ab53f64b94431e82e0fb5ff4 (diff) | |
download | cpython-ec3dfdee6a09e1ad8d4e319876d0cf7691397245.zip cpython-ec3dfdee6a09e1ad8d4e319876d0cf7691397245.tar.gz cpython-ec3dfdee6a09e1ad8d4e319876d0cf7691397245.tar.bz2 |
Only write out one blank line before the request data.
This closes SF patch #419459.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/urllib.py | 4 | ||||
-rw-r--r-- | Lib/urllib2.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index 53005c8..084d32a 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -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: diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 992c83b..ee0bc27 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -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() |