aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zach@driver.xyz>2017-03-03 17:38:12 -0800
committerZach Smith <zach@driver.xyz>2017-03-03 17:38:12 -0800
commitc676b2b3b774d332f9e303a873db5688de657352 (patch)
tree58b0831e71abcdd55b298dfd97fcef6299885a32
parent50757c28be52da5c57021c9ca3c9fcc664e6e296 (diff)
downloaddriver-core-0.10.24.tar.gz
driver-core-0.10.24.tar.bz2
driver-core-0.10.24.zip
Marshal to string for unitResponse in RestServicev0.10.24
-rw-r--r--src/main/scala/xyz/driver/core/rest.scala2
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] =