diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-04-07 21:50:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-04-07 21:50:47 +0000 |
commit | 5a4b43848ac21b3d831f00ce11136e20f820f0a0 (patch) | |
tree | 981b8520e1f9aa683da489c8a283fb513dd26f16 /lib/transfer.c | |
parent | d98869a0889195a9e0d353cf691219f78186ac93 (diff) |
First commit of David McCreedy's EBCDIC and TPF changes.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 6fa8f6334..6bd2dc904 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -101,6 +101,7 @@ #include "share.h" #include "memory.h" #include "select.h" +#include "easyif.h" /* for Curl_convert_to_network prototype */ #define _MPRINTF_REPLACE /* use our functions only */ #include <curl/mprintf.h> @@ -167,6 +168,17 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp) *nreadp = nread; +#ifdef CURL_DOES_CONVERSIONS + if(data->ftp_in_ascii_mode) { + CURLcode res; + res = Curl_convert_to_network(data, conn->upload_fromhere, nread); + /* Curl_convert_to_network calls failf if unsuccessful */ + if(res != CURLE_OK) { + return(res); + } + } +#endif /* CURL_DOES_CONVERSIONS */ + return CURLE_OK; } |