hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1583473 - /httpcomponents/httpcore/branches/4.3.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
Date Mon, 31 Mar 2014 21:47:37 GMT
Author: sebb
Date: Mon Mar 31 21:47:37 2014
New Revision: 1583473

URL: http://svn.apache.org/r1583473
Log:
getBytes(Charset) requires Java 1.6+

Modified:
    httpcomponents/httpcore/branches/4.3.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java

Modified: httpcomponents/httpcore/branches/4.3.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/branches/4.3.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java?rev=1583473&r1=1583472&r2=1583473&view=diff
==============================================================================
--- httpcomponents/httpcore/branches/4.3.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
(original)
+++ httpcomponents/httpcore/branches/4.3.x/httpcore-nio/src/test/java/org/apache/http/nio/integration/TestClientOutOfSequenceResponse.java
Mon Mar 31 21:47:37 2014
@@ -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 TestClientOutOfSequenceResp
             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