Explorar o código

Merge pull request #18 from SoCloz/master

Allow multi-line 226 responses to STOR commands - fixes #17
Julien Laffaye %!s(int64=12) %!d(string=hai) anos
pai
achega
fec71e62e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 }