File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/jdk/com/sun/net/httpserver/bugs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2006, 2023 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2006, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -65,7 +65,7 @@ public void handle (HttpExchange t)
6565 }
6666
6767 final static String request = "GET /test/foo.html HTTP/1.1\r \n Content-length: 0\r \n \r \n " ;
68- final static ByteBuffer requestBuf = ByteBuffer .allocate ( 64 ). put (request .getBytes ());
68+ final static ByteBuffer requestBuf = ByteBuffer .wrap (request .getBytes ());
6969
7070 public static void main (String [] args ) throws Exception {
7171 Handler handler = new Handler ();
You can’t perform that action at this time.
0 commit comments