Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

specify content-type for HTML views to be text/html

  • Loading branch information...
commit b94bf4dd9d9666972b53fcce0e4fa13a62370684 1 parent ccffdc6
@jonnyzzz jonnyzzz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/KaraLib/src/kara/views/HtmlView.kt
View
1  src/KaraLib/src/kara/views/HtmlView.kt
@@ -9,6 +9,7 @@ abstract class HtmlView(var layout : HtmlLayout? = null) : BodyTag("view", false
override fun writeResponse(context : ActionContext) : Unit {
+ context.response.setContentType("text/html")
val writer = context.response.getWriter()!!
tagStack = TagStack(this)
if (layout == null) {
Please sign in to comment.
Something went wrong with that request. Please try again.