Set content to html

This commit is contained in:
Mutzi 2022-09-04 02:41:23 +02:00
parent 8dfa446e2a
commit ea78585a94

View File

@ -31,7 +31,7 @@ void default_handler(const drogon::HttpRequestPtr& req, std::function<void(const
cbk(drogon::HttpResponse::newNotFoundResponse()); cbk(drogon::HttpResponse::newNotFoundResponse());
} else { } else {
if (dev_mode) cbk(drogon::HttpResponse::newFileResponse("./static/index.html")); if (dev_mode) cbk(drogon::HttpResponse::newFileResponse("./static/index.html"));
else cbk(drogon::HttpResponse::newFileResponse((unsigned char*)index_html.data(), index_html.size())); else cbk(drogon::HttpResponse::newFileResponse((unsigned char*)index_html.data(), index_html.size(), "", drogon::CT_TEXT_HTML));
} }
} }