소스 검색

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
 }