[Python-checkins] CVS: python/dist/src/Lib urllib.py,1.92,1.93
Andrew M. Kuchling
python-dev@python.org
Mon, 24 Apr 2000 10:17:10 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Lib
In directory amarok:/home/akuchlin/src/Python-1.6/Lib
Modified Files:
urllib.py
Log Message:
Fix to previous patch: send the request data when it's provided
Index: urllib.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/urllib.py,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -r1.92 -r1.93
*** urllib.py 2000/04/23 02:53:11 1.92
--- urllib.py 2000/04/24 14:17:06 1.93
***************
*** 334,337 ****
--- 334,339 ----
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()