You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2024/02/13 00:34:37 UTC

(commons-net) branch sebbASF-patch-1 created (now 9284b544)

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a change to branch sebbASF-patch-1
in repository https://gitbox.apache.org/repos/asf/commons-net.git


      at 9284b544 Wrong location for EOL

This branch includes the following new commits:

     new 9284b544 Wrong location for EOL

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(commons-net) 01/01: Wrong location for EOL

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch sebbASF-patch-1
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit 9284b5442d05a11db9cd8e745e67c4e5782d575f
Author: Sebb <se...@users.noreply.github.com>
AuthorDate: Tue Feb 13 00:34:34 2024 +0000

    Wrong location for EOL
---
 src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java b/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
index 5dc6bc8d..07f2b335 100644
--- a/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
+++ b/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
@@ -194,8 +194,8 @@ public class FTPHTTPClient extends FTPClient {
             final String auth = proxyUserName + ":" + proxyPassword;
             final String header = "Proxy-Authorization: Basic " + Base64.getEncoder().encodeToString(auth.getBytes(charset));
             output.write(header.getBytes(charset));
+            output.write(CRLF);
         }
-        output.write(CRLF);
 
         final List<String> response = new ArrayList<>();
         final BufferedReader reader = new BufferedReader(new InputStreamReader(input, getCharset()));