diff --git a/src/main/java/net/frozenorb/apiv3/filters/ContentTypeFilter.java b/src/main/java/net/frozenorb/apiv3/filters/ContentTypeFilter.java index 38a5a5a..1f02c07 100644 --- a/src/main/java/net/frozenorb/apiv3/filters/ContentTypeFilter.java +++ b/src/main/java/net/frozenorb/apiv3/filters/ContentTypeFilter.java @@ -7,7 +7,7 @@ import spark.Response; public final class ContentTypeFilter implements Filter { public void handle(Request req, Response res) { - res.header("Content-Type", "application/json"); + res.type("application/json"); } } \ No newline at end of file