We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de35864 commit b9c24c3Copy full SHA for b9c24c3
test/jdk/java/net/httpclient/EchoHandler.java
@@ -40,6 +40,7 @@
40
import java.util.logging.Logger;
41
42
public class EchoHandler implements HttpHandler {
43
+ static final Path CWD = Paths.get(".");
44
public EchoHandler() {}
45
46
@Override
@@ -53,7 +54,7 @@ public void handle(HttpExchange t)
53
54
map1.add("X-Hello", "world");
55
map1.add("X-Bye", "universe");
56
String fixedrequest = map.getFirst("XFixed");
- File outfile = File.createTempFile("foo", "bar");
57
+ File outfile = Files.createTempFile(CWD, "foo", "bar").toFile();
58
FileOutputStream fos = new FileOutputStream(outfile);
59
int count = (int) is.transferTo(fos);
60
is.close();
0 commit comments