summaryrefslogtreecommitdiff
path: root/http/http_connection.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'http/http_connection.hpp')
-rw-r--r--http/http_connection.hpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index 7ae22e9e49..cb0da2679c 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -33,14 +33,6 @@
namespace crow
{
-inline void prettyPrintJson(crow::Response& res)
-{
- json_html_util::dumpHtml(res.body(), res.jsonValue);
-
- res.addHeader(boost::beast::http::field::content_type,
- "text/html;charset=UTF-8");
-}
-
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
static int connectionCount = 0;
@@ -355,7 +347,7 @@ class Connection :
if (prefered == ContentType::HTML)
{
- prettyPrintJson(res);
+ json_html_util::prettyPrintJson(res);
}
else if (prefered == ContentType::CBOR)
{