mirror of
https://github.com/curl/curl.git
synced 2026-08-02 21:30:28 +03:00
ftp: add 'list_only' to the transfer state struct
and rename it from 'ftp_list_only' since it is also used for SSH and POP3. The state is updated internally for 'type=D' FTP URLs. Added test case 1570 to verify. Closes #6578
This commit is contained in:
parent
115c9e27f5
commit
528f71c2ec
10 changed files with 87 additions and 12 deletions
|
|
@ -1416,6 +1416,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
|
|||
}
|
||||
|
||||
data->state.prefer_ascii = data->set.prefer_ascii;
|
||||
data->state.list_only = data->set.list_only;
|
||||
data->state.httpreq = data->set.method;
|
||||
data->change.url = data->set.str[STRING_SET_URL];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue