aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-04-26 07:40:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-04-26 07:40:37 +0000
commit95152aec685c4d11de6cb25802303e4872d51b3e (patch)
tree213409d6a9103d2b2be41474782cdd0ffd3ef28f /lib/urldata.h
parent8ed676236395ef970e7c3b74aebbd1f8eef837ba (diff)
David McCreedy brought line end conversions when doing FTP ASCII
transfers. They are done on non-windows systems and translate CRLF to LF.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 457832dcf..64d883b9e 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -936,6 +936,15 @@ struct UrlState {
/* a place to store the most recenlty set FTP entrypath */
char *most_recent_ftp_entrypath;
+
+#ifndef WIN32
+/* do FTP line-end conversions on most platforms */
+#define CURL_DO_LINEEND_CONV
+ /* for FTP downloads: track CRLF sequences that span blocks */
+ bool prev_block_had_trailing_cr;
+ /* for FTP downloads: how many CRLFs did we converted to LFs? */
+ size_t crlf_conversions;
+#endif
};