diff options
author | adamw <adam@warski.org> | 2017-06-30 14:52:18 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-06-30 14:52:18 +0200 |
commit | d0f9a7f9ece12f18852660b42d65d76a124de53e (patch) | |
tree | 40e6544e81e100a93a9e8de2c76384d24e500800 /akka-http-handler/src/main | |
parent | b9776b71297d30f9a49e52ca0639e8bade9b7e05 (diff) | |
download | sttp-d0f9a7f9ece12f18852660b42d65d76a124de53e.tar.gz sttp-d0f9a7f9ece12f18852660b42d65d76a124de53e.tar.bz2 sttp-d0f9a7f9ece12f18852660b42d65d76a124de53e.zip |
Content type
Diffstat (limited to 'akka-http-handler/src/main')
-rw-r--r-- | akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala b/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala index 0f08684..876fea8 100644 --- a/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala +++ b/akka-http-handler/src/main/scala/com/softwaremill/sttp/akkahttp/AkkaHttpSttpHandler.scala @@ -78,7 +78,7 @@ class AkkaHttpSttpHandler(actorSystem: ActorSystem) extends SttpStreamHandler[Fu private def setBody(r: Request, body: RequestBody, ar: HttpRequest): Future[HttpRequest] = body match { case NoBody => Future.successful(ar) - case StringBody(b) => Future.successful(ar.withEntity(b)) + case StringBody(b, encoding) => Future.successful(ar.withEntity(b)) // TODO case ByteArrayBody(b) => Future.successful(ar.withEntity(b)) case ByteBufferBody(b) => Future.successful(ar.withEntity(ByteString(b))) case InputStreamBody(b) => Future.successful(ar) //TODO |