Skip to content

Commit

Permalink
Added the response encoding to the request to avoid the charset to be…
Browse files Browse the repository at this point in the history
… set to null when requesting `swagger-ui-bundle.js`.
  • Loading branch information
filipesoliveira committed Jul 1, 2024
1 parent 9b30a5f commit 4431661
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class TestHttpClientUnirestImpl(override val baseAddress: String, private val en
}.addOriginHeader()

request.encodeAuth()

request.responseEncoding("utf-8")
request = if (isMultipartFormRequest(webRequest)) {
buildMultipartFormRequest(webRequest, request)
} else {
Expand Down

0 comments on commit 4431661

Please sign in to comment.