Skip to content

Commit

Permalink
fix cachedBody
Browse files Browse the repository at this point in the history
  • Loading branch information
casualjim committed Oct 6, 2012
1 parent 4881495 commit 347cf92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/scalatra/servlet/RichRequest.scala
Expand Up @@ -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
Expand Down

0 comments on commit 347cf92

Please sign in to comment.