aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-08-19 21:18:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-08-19 21:18:36 +0000
commitcfdcae4bc75fba04b9864cae18e0bbe66b8655b9 (patch)
tree2012bd78cd739dddfcd85bdaae543919af7be23f /lib/url.c
parent74a6921bc454fcbf842a221e95ba5dc09b19049e (diff)
Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPE
command on subsequent requests on a re-used connection unless it has to.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/url.c b/lib/url.c
index 6b376faf7..c0641c78b 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -612,7 +612,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
*
* Transfer using ASCII (instead of BINARY).
*/
- data->set.ftp_ascii = va_arg(param, long)?TRUE:FALSE;
+ data->set.prefer_ascii = va_arg(param, long)?TRUE:FALSE;
break;
case CURLOPT_TIMECONDITION:
/*
@@ -3125,15 +3125,15 @@ static CURLcode CreateConnection(struct SessionHandle *data,
command = (char)toupper((int)type[6]);
switch(command) {
case 'A': /* ASCII mode */
- data->set.ftp_ascii = 1;
+ data->set.prefer_ascii = TRUE;
break;
case 'D': /* directory mode */
- data->set.ftp_list_only = 1;
+ data->set.ftp_list_only = TRUE;
break;
case 'I': /* binary mode */
default:
/* switch off ASCII */
- data->set.ftp_ascii = 0;
+ data->set.prefer_ascii = FALSE;
break;
}
}
@@ -3228,13 +3228,13 @@ static CURLcode CreateConnection(struct SessionHandle *data,
switch(command) {
case 'A': /* ASCII mode */
case 'N': /* NETASCII mode */
- data->set.ftp_ascii = 1;
+ data->set.prefer_ascii = TRUE;
break;
case 'O': /* octet mode */
case 'I': /* binary mode */
default:
/* switch off ASCII */
- data->set.ftp_ascii = 0;
+ data->set.prefer_ascii = FALSE;
break;
}
}