Permalink
Browse files

fix cachedBody

  • Loading branch information...
1 parent 4881495 commit 347cf9256ae44a94c4bd2a4da8b2484b3e6fec28 @casualjim casualjim committed Oct 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/scala/org/scalatra/servlet/RichRequest.scala
@@ -179,7 +179,7 @@ case class RichRequest(r: HttpServletRequest) extends AttributesMap {
}
private def cachedBody: Option[String] =
- get(cachedBodyKey).asInstanceOf[Option[String]]
+ get(cachedBodyKey).flatMap(_.asInstanceOf[String].blankOption)
/**
* Returns true if the request is an AJAX request

0 comments on commit 347cf92

Please sign in to comment.