commit | 43c5af026fbb004b115358e943aca21432d7a76a | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Mon Apr 24 14:17:06 2000 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Mon Apr 24 14:17:06 2000 +0000 |
tree | c0d8b36908c6cc1659ba94f7372d83b540296e50 | |
parent | c1488413e4a5f0fb4df102c036e7c3124def9816 [diff] [blame] |
Fix to previous patch: send the request data when it's provided
diff --git a/Lib/urllib.py b/Lib/urllib.py index a1dcbda..7328f9a 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py
@@ -333,6 +333,8 @@ if auth: h.putheader('Authorization: Basic %s' % auth) for args in self.addheaders: apply(h.putheader, args) h.endheaders() + if data is not None: + h.send(data + '\r\n') errcode, errmsg, headers = h.getreply() fp = h.getfile() if errcode == 200: