Skip to content
Browse files

Reset content type to null in notFound handler

  • Loading branch information...
1 parent 1e709c1 commit 6ef5357181d9ce3ece334008388ec7e0463e04d5 @casualjim casualjim committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/g8/src/main/scala/$package$/$servlet_name$.scala
View
2 src/main/g8/src/main/scala/$package$/$servlet_name$.scala
@@ -15,6 +15,8 @@ class $servlet_name$ extends ScalatraServlet with ScalateSupport {
}
notFound {
+ // remove content type in case it was set through an action
+ contentType = null
// Try to render a ScalateTemplate if no route matched
findTemplate(requestPath) map { path =>
contentType = "text/html"

0 comments on commit 6ef5357

Please sign in to comment.
Something went wrong with that request. Please try again.