We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32259a1 commit 2a197dbCopy full SHA for 2a197db
src/test/extras/SimpleFileServer.java
@@ -85,7 +85,7 @@ public void handle(HttpExchange exchange) throws IOException {
85
QueryParameters qp = QueryParameters.decode(ContentEncoding.encoding(exchange.getRequestHeaders()), exchange.getRequestURI().getQuery());
86
long size = Long.parseLong(qp.getFirst("size"));
87
byte[] buffer = new byte[1024 * 1024];
88
- exchange.getRequestHeaders().set("content-type", "application/octet-stream");
+ exchange.getResponseHeaders().set("content-type", "application/octet-stream");
89
exchange.sendResponseHeaders(200, size);
90
OutputStream os = exchange.getResponseBody();
91
while (size > 0) {
0 commit comments