Skip to content

Commit d7325a2

Browse files
committed
feat: address coderabbit comments
1 parent e1e3f68 commit d7325a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/openfga/sdk/api/client/RawApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private HttpRequest buildHttpRequest(RawRequestBuilder requestBuilder, String pa
149149

150150
// Handle String body separately
151151
if (body instanceof String) {
152-
bodyBytes = ((String) body).getBytes();
152+
bodyBytes = ((String) body).getBytes(java.nio.charset.StandardCharsets.UTF_8);
153153
} else {
154154
bodyBytes = apiClient.getObjectMapper().writeValueAsBytes(body);
155155
}

0 commit comments

Comments
 (0)