Browse Source

Merge pull request #18 from SoCloz/master

Allow multi-line 226 responses to STOR commands - fixes #17
Julien Laffaye 11 years ago
parent
commit
fec71e62e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ftp.go

+ 1 - 1
ftp.go

@@ -417,7 +417,7 @@ func (c *ServerConn) Stor(path string, r io.Reader) error {
 		return err
 	}
 
-	_, _, err = c.conn.ReadCodeLine(StatusClosingDataConnection)
+	_, _, err = c.conn.ReadResponse(StatusClosingDataConnection)
 	return err
 }