File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
main/scala/com/avsystem/commons/jetty/rpc
test/scala/com/avsystem/commons/jetty/rpc Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ object JettyRPCFramework extends StandardRPCFramework with LazyLogging {
104104 val async = request.startAsync().setup(_.setTimeout(contextTimeout.toMillis))
105105 handlePost(call).andThenNow {
106106 case Success (responseContent) =>
107+ response.setContentType(MimeTypes .Type .APPLICATION_JSON .asString())
108+ response.setCharacterEncoding(StandardCharsets .UTF_8 .name())
107109 response.getWriter.write(responseContent.s)
108110 case Failure (t) =>
109111 response.sendError(HttpStatus .INTERNAL_SERVER_ERROR_500 , t.getMessage)
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class JettyRPCFrameworkTest extends AnyFunSuite with ScalaFutures with Matchers
9393 }
9494
9595 test(" inner rpc + string arg -> string" ) {
96- val world = " world "
96+ val world = " gżegżółka "
9797 rpc.topper.hello(world).futureValue shouldBe world
9898 val anonymous = " "
9999 rpc.topper.hello(anonymous).futureValue shouldBe anonymous
You can’t perform that action at this time.
0 commit comments