1 parent 6fae772 commit 6cb8a0bCopy full SHA for 6cb8a0b
1 file changed
src/test/java/com/retailsvc/http/start/GetDataHandler.java
@@ -17,10 +17,13 @@ public void handle(HttpExchange exchange) throws IOException {
17
LOG.debug("GET /data");
18
19
try (exchange) {
20
- byte[] bytes = """
21
- {
22
- "id": "some-id"
23
- }""".getBytes();
+ byte[] bytes =
+ """
+ {
+ "id": "some-id"
24
+ }\
25
26
+ .getBytes();
27
try (var os = exchange.getResponseBody()) {
28
var responseHeaders = exchange.getResponseHeaders();
29
responseHeaders.add("content-type", "application/json");
0 commit comments