]> granicus.if.org Git - python/commitdiff
Fix to previous patch: send the request data when it's provided
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 24 Apr 2000 14:17:06 +0000 (14:17 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 24 Apr 2000 14:17:06 +0000 (14:17 +0000)
Lib/urllib.py

index a1dcbdaedb858caf7767eba0ab9fe86a660dd457..7328f9a69134a19d09d1030ff9da5fb8f0acd335 100644 (file)
@@ -333,6 +333,8 @@ class URLopener:
             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: