We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3bc453 commit 707d7e3Copy full SHA for 707d7e3
src/test/test_mains/B6361557.java
@@ -65,7 +65,7 @@ public void handle (HttpExchange t)
65
}
66
67
final static String request = "GET /test/foo.html HTTP/1.1\r\nContent-length: 0\r\n\r\n";
68
- final static ByteBuffer requestBuf = ByteBuffer.allocate(64).put(request.getBytes());
+ final static ByteBuffer requestBuf = ByteBuffer.wrap(request.getBytes());
69
70
public static void main (String[] args) throws Exception {
71
Handler handler = new Handler();
0 commit comments