diff options
author | Zach Smith <zach@driver.xyz> | 2017-03-03 17:38:12 -0800 |
---|---|---|
committer | Zach Smith <zach@driver.xyz> | 2017-03-03 17:38:12 -0800 |
commit | c676b2b3b774d332f9e303a873db5688de657352 (patch) | |
tree | 58b0831e71abcdd55b298dfd97fcef6299885a32 | |
parent | 50757c28be52da5c57021c9ca3c9fcc664e6e296 (diff) | |
download | driver-core-c676b2b3b774d332f9e303a873db5688de657352.tar.gz driver-core-c676b2b3b774d332f9e303a873db5688de657352.tar.bz2 driver-core-c676b2b3b774d332f9e303a873db5688de657352.zip |
Marshal to string for unitResponse in RestServicev0.10.24
-rw-r--r-- | src/main/scala/xyz/driver/core/rest.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/core/rest.scala b/src/main/scala/xyz/driver/core/rest.scala index 8ce2219..33e0f97 100644 --- a/src/main/scala/xyz/driver/core/rest.scala +++ b/src/main/scala/xyz/driver/core/rest.scala @@ -148,7 +148,7 @@ object rest { } protected def unitResponse(request: Future[Unmarshal[ResponseEntity]]): OptionT[Future, Unit] = - OptionT[Future, Unit](request.flatMap(_.to[JsValue]).map(_ => Option(()))) + OptionT[Future, Unit](request.flatMap(_.to[String]).map(_ => Option(()))) protected def optionalResponse[T](request: Future[Unmarshal[ResponseEntity]])( implicit um: Unmarshaller[ResponseEntity, Option[T]]): OptionT[Future, T] = |