commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1441921 - /commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java
Date Sun, 03 Feb 2013 14:49:12 GMT
Author: sebb
Date: Sun Feb  3 14:49:12 2013
New Revision: 1441921

URL: http://svn.apache.org/viewvc?rev=1441921&view=rev
Log:
NET-500 - servers don't default to ASCII

Modified:
    commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java

Modified: commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java?rev=1441921&r1=1441920&r2=1441921&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java Sun Feb  3 14:49:12
2013
@@ -310,6 +310,10 @@ __main:
 
             if (binaryTransfer) {
                 ftp.setFileType(FTP.BINARY_FILE_TYPE);
+            } else {
+                // in theory this should not be necessary as servers should default to ASCII
+                // but they don't all do so - see NET-500
+                ftp.setFileType(FTP.ASCII_FILE_TYPE);
             }
 
             // Use passive mode as default because most of us are



Mime
View raw message