hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [16/34] httpcomponents-core git commit: getBytes(Charset) requires Java 1.6+
Date Tue, 09 May 2017 20:02:45 GMT
getBytes(Charset) requires Java 1.6+

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.3.x@1583473
13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/6dce2454
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/6dce2454
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/6dce2454

Branch: refs/heads/4.3.x
Commit: 6dce2454433a39fec4c98e41201d8ebfe7b7bf2c
Parents: 09f0e8d
Author: Sebastian Bazley <sebb@apache.org>
Authored: Mon Mar 31 21:47:37 2014 +0000
Committer: Sebastian Bazley <sebb@apache.org>
Committed: Mon Mar 31 21:47:37 2014 +0000

----------------------------------------------------------------------
 .../http/nio/integration/TestClientOutOfSequenceResponse.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/6dce2454/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
b/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
index 52edb53..16ec36a 100644
--- a/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
+++ b/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
@@ -32,7 +32,6 @@ import java.net.Socket;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
 
-import org.apache.http.Consts;
 import org.apache.http.HttpException;
 import org.apache.http.HttpHost;
 import org.apache.http.HttpRequest;
@@ -89,7 +88,7 @@ public class TestClientOutOfSequenceResponse {
             socket.getOutputStream().write((
                     "HTTP/1.1 200 OK\r\n" +
                     "Content-Length: 0\r\n" +
-                    "Connection: keep-alive\r\n\r\n").getBytes(Consts.UTF_8));
+                    "Connection: keep-alive\r\n\r\n").getBytes("UTF-8"));
             socket.getOutputStream().flush();
         }
 


Mime
View raw message