store the FTP response code in the httpcode variable

This commit is contained in:
Daniel Stenberg
2003-08-20 15:41:45 +00:00
parent afc6ade2b9
commit d00e4a377b
2 changed files with 4 additions and 1 deletions

View File

@@ -391,6 +391,9 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
if(ftpcode)
*ftpcode=code; /* return the initial number like this */
/* store the latest code for later retrieval */
conn->data->info.httpcode=code;
return result;
}