mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
FTP: partly revert eeb7c12807
Since ASCII transfers on FTP means sending CRLF line endings, we should
still keep converting them to LF-only on platforms where text files
typically do not use CRLF.
This also DOES NOT convert existing CRLF line endings on ASCII uploads
but only does stand-alone LF => CRLF.
Regression from eeb7c12807 shipped in 8.10.0
Reported-by: finkjsc on github
Fixes #14873
Closes #14875
This commit is contained in:
parent
2b652b8634
commit
7eda757d99
7 changed files with 54 additions and 19 deletions
|
|
@ -105,6 +105,12 @@ typedef unsigned int curl_prot_t;
|
|||
#define CURL_DEFAULT_USER "anonymous"
|
||||
#define CURL_DEFAULT_PASSWORD "ftp@example.com"
|
||||
|
||||
#if !defined(_WIN32) && !defined(MSDOS) && !defined(__EMX__)
|
||||
/* do FTP line-end CRLF => LF conversions on platforms that prefer LF-only. It
|
||||
also means: keep CRLF line endings on the CRLF platforms */
|
||||
#define CURL_PREFER_LF_LINEENDS
|
||||
#endif
|
||||
|
||||
/* Convenience defines for checking protocols or their SSL based version. Each
|
||||
protocol handler should only ever have a single CURLPROTO_ in its protocol
|
||||
field. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue