Browse Source

Allow multi-line 226 responses to STOR commands - fixes #17

jfbus 11 years ago
parent
commit
d54ea712cb
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
 }