Skip to content

Commit

Permalink
fix: incorrect post translation request
Browse files Browse the repository at this point in the history
  • Loading branch information
d1snin committed May 8, 2024
1 parent 7832f26 commit 658ac09
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ public class DefaultBeamClient(
runCatching {
requireToken()

httpClient.post(Paths.POST_TRANSLATION) {
val path = Paths.POST_TRANSLATION.replaceLanguageCodePlaceholder(languageCode)

httpClient.post(path) {
contentType(ContentType.Application.Json)
setBody(translation)
}.body()
Expand Down

0 comments on commit 658ac09

Please sign in to comment.