diff --git a/src/test/kotlin/daikon/freemarker/HttpRenderTest.kt b/src/test/kotlin/daikon/freemarker/HttpRenderTest.kt index 3e0f9da..aa1b5d9 100644 --- a/src/test/kotlin/daikon/freemarker/HttpRenderTest.kt +++ b/src/test/kotlin/daikon/freemarker/HttpRenderTest.kt @@ -2,7 +2,6 @@ package daikon.freemarker import daikon.HttpServer import org.assertj.core.api.Assertions.assertThat -import org.eclipse.jetty.http.MimeTypes.Type.TEXT_HTML_UTF_8 import org.junit.jupiter.api.Test import topinambur.http @@ -32,7 +31,7 @@ class HttpRenderTest { .get("/") { _, res -> res.html("hello_to", hashMapOf("name" to "Bob")) } .start().use { val response = "http://localhost:4545/".http.get() - assertThat(response.header("Content-Type")).isEqualTo(TEXT_HTML_UTF_8.asString()) + assertThat(response.header("Content-Type")).isEqualTo("text/html;charset=utf-8") assertThat(response.body).isEqualTo("hello Bob") } }