Skip to content

Commit 648bfe3

Browse files
authored
Merge pull request #8 from SamedhG/dumb-mistake
Made a dumb error here's the fix
2 parents e8786e5 + aadccda commit 648bfe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ftp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ impl FtpStream {
297297
let retr_command = format!("RETR {}\r\n", file_name);
298298
let data_stream = BufReader::new(self.data_command(&retr_command).await?);
299299
self.read_response_in(&[
300-
status::CLOSING_DATA_CONNECTION,
301-
status::REQUESTED_FILE_ACTION_OK,
300+
status::ABOUT_TO_SEND,
301+
status::ALREADY_OPEN
302302
])
303303
.await?;
304304
Ok(data_stream)

0 commit comments

Comments
 (0)