Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request dutchcoders#3 from zaz600/fix-multiline
Browse files Browse the repository at this point in the history
fix multiline
  • Loading branch information
VincenzoLaSpesa committed Jan 3, 2016
2 parents ae7bb90 + 630e100 commit 32450e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ func (ftp *FTP) receive() (string, error) {
if err != nil {
return line, err
}
code, _, err := ftp.getCode(str)
if err == nil && code == closingCode {
code, ml, err := ftp.getCode(str)
if err == nil && !ml && code == closingCode {
break
} else {
//check error codes 5xx 4xx
Expand Down

0 comments on commit 32450e5

Please sign in to comment.