mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 07:38:49 -05:00
store the FTP response code in the httpcode variable
This commit is contained in:
parent
afc6ade2b9
commit
d00e4a377b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -565,7 +565,7 @@ struct connectdata {
|
||||
* Struct to keep statistical and informational data.
|
||||
*/
|
||||
struct PureInfo {
|
||||
int httpcode;
|
||||
int httpcode; /* Recent HTTP or FTP response code */
|
||||
int httpproxycode;
|
||||
int httpversion;
|
||||
long filetime; /* If requested, this is might get set. Set to -1 if the time
|
||||
|
Loading…
Reference in New Issue
Block a user