Skip to content
Snippets Groups Projects
Commit d9c41a0f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Code 250 is okay as well as the previous 226-code after a successful file

transfer
parent 1ef3600a
No related branches found
No related tags found
No related merge requests found
......@@ -423,8 +423,8 @@ CURLcode ftp_done(struct connectdata *conn)
just performed: */
nread = GetLastResponse(data->firstsocket, buf, data);
/* 226 Transfer complete */
if(strncmp(buf, "226", 3)) {
/* 226 Transfer complete, 250 Requested file action okay, completed. */
if(!strncmp(buf, "226", 3) && !strncmp(buf, "250", 3)) {
failf(data, "%s", buf+4);
return CURLE_FTP_WRITE_ERROR;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment