if (disposed)
return;
- disposed = true;\r
- if (stream != null)\r
+ disposed = true;
+ if (stream != null)
stream.Close ();
stream = null;
}
public override Stream GetResponseStream ()
{
- if (stream == null) {
- throw new InvalidOperationException ();
- }
+ if (stream == null)
+ return Stream.Null; // After a STOR we get this
if (method != WebRequestMethods.Ftp.DownloadFile &&
method != WebRequestMethods.Ftp.ListDirectory)