diff --git a/src/tawashi_implem/response.cpp b/src/tawashi_implem/response.cpp index 61b9934..c62d421 100644 --- a/src/tawashi_implem/response.cpp +++ b/src/tawashi_implem/response.cpp @@ -205,10 +205,10 @@ namespace tawashi { HttpHeader http_header = this->on_process(); *m_stream_out << http_header; - SPDLOG_TRACE(statuslog, "Raising event on_mustache_prepare"); - this->on_mustache_prepare(mustache_context); - if (http_header.body_required()) { + SPDLOG_TRACE(statuslog, "Raising event on_mustache_prepare"); + this->on_mustache_prepare(mustache_context); + SPDLOG_TRACE(statuslog, "Rendering in mustache"); *m_stream_out << mstch::render( on_mustache_retrieve(),