Skip to content

Commit 7df3c04

Browse files
committed
add logging
1 parent 168666c commit 7df3c04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/comroid/api/net/REST.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private String reqErrMsg() {
176176
public CompletableFuture<Response> apply(Request request) {
177177
var pub = List.of(Method.GET, Method.OPTIONS, Method.TRACE).contains(request.method) || request.body == null
178178
? HttpRequest.BodyPublishers.noBody()
179-
: HttpRequest.BodyPublishers.ofString(request.body.toString());
179+
: HttpRequest.BodyPublishers.ofString(request.body.toSerializedString());
180180
var req = HttpRequest.newBuilder().uri(request.uri).method(request.method.name(), pub);
181181
request.headers.forEach(req::header);
182182
req.header("Content-Type", request.body == null ? "application/json" : request.body.getMimeType().toString());

0 commit comments

Comments
 (0)