1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

fix indentation.

This commit is contained in:
Michal Marek 2009-06-19 10:20:28 +00:00
parent 2c0c05e96d
commit ad1bfc5468

View File

@ -2292,20 +2292,20 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
if(checkprefix("ftp://", ppath)) { if(checkprefix("ftp://", ppath)) {
if (data->set.proxy_transfer_mode) { if (data->set.proxy_transfer_mode) {
/* when doing ftp, append ;type=<a|i> if not present */ /* when doing ftp, append ;type=<a|i> if not present */
char *p = strstr(ppath, ";type="); char *p = strstr(ppath, ";type=");
if(p && p[6] && p[7] == 0) { if(p && p[6] && p[7] == 0) {
switch (Curl_raw_toupper(p[6])) { switch (Curl_raw_toupper(p[6])) {
case 'A': case 'A':
case 'D': case 'D':
case 'I': case 'I':
break; break;
default: default:
p = NULL; p = NULL;
}
} }
if(!p) }
snprintf(ftp_typecode, sizeof(ftp_typecode), ";type=%c", if(!p)
data->set.prefer_ascii ? 'a' : 'i'); snprintf(ftp_typecode, sizeof(ftp_typecode), ";type=%c",
data->set.prefer_ascii ? 'a' : 'i');
} }
if (conn->bits.user_passwd && !conn->bits.userpwd_in_url) if (conn->bits.user_passwd && !conn->bits.userpwd_in_url)
paste_ftp_userpwd = TRUE; paste_ftp_userpwd = TRUE;