瀏覽代碼

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

jfbus 12 年之前
父節點
當前提交
d54ea712cb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 }