* FtpDataStream.cs: Close must be called on the stream before we
attempt to read a status code from the remote server.
svn path=/trunk/mcs/; revision=73986
+2007-03-09 Miguel de Icaza <miguel@novell.com>
+
+ * FtpDataStream.cs: Close must be called on the stream before we
+ attempt to read a status code from the remote server.
+
+ Fixes FTP transfers to complete.
+
2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
* HttpWebRequest.cs: properly handle OPTIONS, which may or may not
totalRead += nbytes;
if (nbytes == 0) {
contentLength = totalRead;
- request.SetTransferCompleted ();
networkStream.Close ();
+ request.SetTransferCompleted ();
}
-
+
return nbytes;
}