Skip to content

Commit 6be2cbc

Browse files
committed
Added an explicit encoding setting when creating http request in order to correctly transfer the value of the query parameters in POST requests
1 parent 2ba04f7 commit 6be2cbc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/httptransport/impl/ConvertUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ internal fun HttpRequest.toHttpUriRequest(): HttpUriRequest {
3333
}
3434
return requestBuilder
3535
.apply {
36+
charset = Charsets.UTF_8
3637
params.map { (name, value) ->
3738
BasicNameValuePair(name, value)
3839
}.forEach(this::addParameter)

0 commit comments

Comments
 (0)